← Back to plugin index

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.

Type name
DummyCredentialPersister
Class
com.airlock.iam.core.misc.impl.persistency.DummyCredentialPersister
May be used by
Properties
YAML Template (with default values)

type: DummyCredentialPersister
id: DummyCredentialPersister-xxxxxx
displayName: 
comment: 
properties: