Annotation Interface InMemoryIdentityStoreDefinition
Annotation used to define a container provided
IdentityStore that stores
caller credentials and identity attributes (together caller identities) in an
in-memory store, and make that implementation available as an enabled CDI bean.
The data in this store is set at definition time only via the value() attribute
of this annotation.
The following shows an example:
@InMemoryIdentityStoreDefinition({
@Credentials(callerName = "peter", password = "secret1", groups = { "foo", "bar" }),
@Credentials(callerName = "john", password = "secret2", groups = { "foo", "kaz" }),
@Credentials(callerName = "carla", password = "secret3", groups = { "foo" }) })
- Since:
- 4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceCredentialsdefine a single caller identity for use with theInMemoryIdentityStoreDefinitionannotation. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintDetermines the order in case multiple IdentityStores are found.Allowpriorityto be specified as a Jakarta Expression Language expression.Determines what the identity store is used forAllowuseForto be specified as an Jakarta Expression Language expression.Defines the caller identities stored in the in-memory identity store
-
Element Details
-
value
Defines the caller identities stored in the in-memory identity store- Returns:
- caller identities stored in the in-memory identity store
- Default:
- {}
-
priority
int priorityDetermines the order in case multiple IdentityStores are found.- Returns:
- the priority.
- Default:
- 90
-
priorityExpression
String priorityExpressionAllowpriorityto be specified as a Jakarta Expression Language expression. If set, overrides any value set withpriority.- Returns:
- the
priorityJakarta Expression Language expression
- Default:
- ""
-
useFor
IdentityStore.ValidationType[] useForDetermines what the identity store is used for- Returns:
- the type the identity store is used for
- Default:
- {VALIDATE, PROVIDE_GROUPS}
-
useForExpression
String useForExpressionAllowuseForto be specified as an Jakarta Expression Language expression. If set, overrides any value set with useFor.- Returns:
- the
useForJakarta Expression Language expression
- Default:
- ""
-