← Back to plugin index

Property Credential Persister

Description

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

Type name
PropertyCredentialPersister
Class
com.airlock.iam.core.misc.impl.persistency.property.PropertyCredentialPersister
May be used by
Properties
File (file)
Description

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.

Attributes
File/Path
Optional
Default value
users.properties
Is Binary Credential (isBinaryCredential)
Description
Set this property to true if the credential is stored as binary format instead of text.
Attributes
Boolean
Optional
Default value
false
Context Data Keys (contextDataKeys)
Description
A list of property keys used for the context data container. All context data columns are treated as strings.
Attributes
String-List
Optional
Other Credentials Delivery Dates (otherCredentialsDeliveryDates)
Description

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.

Attributes
String
Optional
Example
othercred.cred-delivery-date
Example
password-delivery-date
Selector (selector)
Description

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.

Attributes
String
Mandatory
Example
otp
Example
mtan
YAML Template (with default values)

type: PropertyCredentialPersister
id: PropertyCredentialPersister-xxxxxx
displayName: 
comment: 
properties:
  contextDataKeys:
  file: users.properties
  isBinaryCredential: false
  otherCredentialsDeliveryDates:
  selector: