Property Credential Persister
A credential persister plugin that uses a properties file as storage. The plugin is intended for demo and testing.
It is fully functional and can be accessed concurrently, but it is not optimized for performance, and it does not scale to a large number of entries. It keeps everything in memory and reads and writes the whole data file.
The following keys are used:
- cred-active
- cred-ordered
- cred-ordered-user
- cred-ordered-date
- cred-binary-data
- cred-string-data
- cred-delivery-date
- cred-generation-date
- cred-serial
- cred-next-binary-data
- cred-next-string-data
- cred-next-delivery-date
- cred-next-generation-date
- cred-next-serial
The properties are stored in the following format: userid.selector.key = value
file) Path to the properties file used to store the credential data.
This is either an absolute path, or a path relative to the config directory. If the file does not exist, it is created by the plugin.
isBinaryCredential) contextDataKeys) otherCredentialsDeliveryDates) Comma-separated list of secondary keys pointing to other credential's delivery dates.
Note that if you intend to reference properties from other persisters, you need to store them in the same file.
selector) A selector string used in the key to store the values of this credential. This is needed to allow storing different credentials in the same file (e.g. the file with all user data).
This selector is not used for context data and other credential delivery dates.
type: PropertyCredentialPersister
id: PropertyCredentialPersister-xxxxxx
displayName:
comment:
properties:
contextDataKeys:
file: users.properties
isBinaryCredential: false
otherCredentialsDeliveryDates:
selector: