Module org.glassfish.soteria
Annotation Type EmbeddedIdentityStoreDefinition
-
@Retention(RUNTIME) @Target(TYPE) public @interface EmbeddedIdentityStoreDefinition
Annotation used to define a container providedIdentityStorethat 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:
@EmbeddedIdentityStoreDefinition({ @Credentials(callerName = "peter", password = "secret1", groups = { "foo", "bar" }), @Credentials(callerName = "john", password = "secret2", groups = { "foo", "kaz" }), @Credentials(callerName = "carla", password = "secret3", groups = { "foo" }) })
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intpriorityDetermines the order in case multiple IdentityStores are found.jakarta.security.enterprise.identitystore.IdentityStore.ValidationType[]useForDetermines what the identity store is used forCredentials[]valueDefines the caller identities stored in the embedded identity store
-
-
-
Element Detail
-
value
Credentials[] value
Defines the caller identities stored in the embedded identity store- Returns:
- caller identities stored in the embedded identity store
- Default:
- {}
-
-
-
useFor
jakarta.security.enterprise.identitystore.IdentityStore.ValidationType[] useFor
Determines what the identity store is used for- Returns:
- the type the identity store is used for
- Default:
- {jakarta.security.enterprise.identitystore.IdentityStore.ValidationType.VALIDATE, jakarta.security.enterprise.identitystore.IdentityStore.ValidationType.PROVIDE_GROUPS}
-
-