Annotation Interface InMemoryIdentityStoreDefinition


@Retention(RUNTIME) @Target(TYPE) public @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" }) })
 
 
NOTE: DRAFT API. MAY CHANGE IN THE FINAL VERSION