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" }) })
| Modifier and Type | Class and Description |
|---|---|
| public static @interface | InMemoryIdentityStoreDefinition.
|
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public String | Returns: thepriority Jakarta Expression Language expressionAllow |
| public IdentityStore. | Returns: the type the identity store is used forDetermines what the identity store is used for |
| public String | Returns: theuseFor Jakarta Expression Language expressionAllow |
| public InMemoryIdentityStoreDefinition. | Returns: caller identities stored in the in-memory identity storeDefines the caller identities stored in the in-memory identity store |
| priority | back to summary |
|---|---|
| public int priority() Determines the order in case multiple IdentityStores are found.
| |
| priorityExpression | back to summary |
|---|---|
| public String priorityExpression() Allow
| |
| useFor | back to summary |
|---|---|
| public IdentityStore. Determines what the identity store is used for
| |
| useForExpression | back to summary |
|---|---|
| public String useForExpression() Allow
| |
| value | back to summary |
|---|---|
| public InMemoryIdentityStoreDefinition. Defines the caller identities stored in the in-memory identity store
| |
Credentials define a single caller identity for
use with the InMemoryIdentityStoreDefinition annotation.
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String[] | Returns: optional list of groupsThe optional list of groups that the specified caller is in. |
| public String |
| callerName | back to summary |
|---|---|
| public String callerName() Name of caller. This is the name a caller uses to authenticate with.
| |
| groups | back to summary |
|---|---|
| public String[] groups() The optional list of groups that the specified caller is in.
| |
| password | back to summary |
|---|---|
| public String password() A text-based password used by the caller to authenticate.
| |