Dummy Credential Persister
Description
Dummy credential persister and iterator that can be used for testing. Its behaviour is purely determined by the input in the following way:
Getting a Credential (getCredentialByName):
- If the username contains the string "notfound" a NotFoundException is thrown.
- If the username contains the string "ambig" a NotUniqueException is thrown.
- If the username contains the string "except" a PersisterException is thrown.
- If the username contains the string "inactive" an inactive credential is returned.
- If the username contains the string "order" a credential with the order flag set is returned.
- If the username contains the string "binary" a binary type credential is returned. The binary data is the binary representation of the username.
- If the username does not contain the string "binary" a string type credential is returned. The credential data is the username.
Updating a Credential (makeCredentialPersistent):
- If the username contains the string "notfound" a NotFoundException is thrown.
- If the username contains the string "ambig" a NotUniqueException is thrown.
- If the username contains the string "except" a PersisterException is thrown.
- For all other usernames, the call returns normally.
Getting all User-IDs (getAllUserIds):
- Returns a list with 100 random user ids.
Getting matching User-IDs (getMatchingUserIds):
- If the value to match contains the string "empty" an empty list is returned.
- If the value to match contains the string "big" a list with 10'000 random user ids is returned.
- If the value to match contains the string "except" a PersisterException is thrown.
- For all values to match, a list with 100 random user ids is returned.
May be used by
Certificate Data Extractor Task Certificate Data Extractor Task OATH OTP Settings Credential Secret Batch Task Credential Secret Batch Task OATH OTP Letter Task Certificate Authenticator Token Authenticator Credential Report Task Credential Report Task Credential-based Generic Token Repository Has Email Address Cipher Credential Persister Persister IAK Verifier Email Otp Authenticator Credential Data mTAN Handler Credential Data mTAN Handler Legacy Email OTP Authentication Step
Properties
YAML Template (with default values)
type: DummyCredentialPersister
id: DummyCredentialPersister-xxxxxx
displayName:
comment:
properties: