@Retention(value=RUNTIME) @Target(value=TYPE) public @interface DatabaseIdentityStoreDefinition
IdentityStore that
stores caller credentials and identity attributes in a relational database,
and make that implementation available as an enabled CDI bean.| Modifier and Type | Optional Element and Description |
|---|---|
String |
callerQuery
SQL query to validate the {caller, password} pair.
|
String |
dataSourceLookup
Full JNDI name of the data source that provides access to the data base
where the caller identities are stored.
|
String |
groupsQuery
SQL query to retrieve the groups associated with the caller when
authentication succeeds.
|
String |
hashAlgorithm
Hash algorithm applied to plain text password for comparison with
password returned from
groupsQuery(). |
int |
priority
Determines the order in case multiple IdentityStores are found.
|
String |
priorityExpression
Allow priority to be specified as an EL expression.
|
IdentityStore.ValidationType[] |
useFor
Determines what the identity store is used for
|
String |
useForExpression
Allow useFor to be specified as an EL expression.
|
public abstract String dataSourceLookup
public abstract String callerQuery
useFor() contains
IdentityStore.ValidationType.VALIDATE.
The name of the caller that is to be authenticated has to be set as the one and only placeholder. The (hashed) password should be in the first column of the result.
Example query:
select password from callers where name = ?
public abstract String groupsQuery
useFor() contains
IdentityStore.ValidationType.PROVIDE_GROUPS.
The name of the caller that has been authenticated has to be set as the one and only placeholder. The group name should be in the first column of the result.
Example query:
select group_name from caller_groups where caller_name = ?
public abstract String hashAlgorithm
groupsQuery().public abstract int priority
public abstract String priorityExpression
public abstract IdentityStore.ValidationType[] useFor
public abstract String useForExpression
Copyright © 2015–2017. All rights reserved.