@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 | Required Element and Description |
---|---|
String |
callerQuery
SQL query to validate the {caller, password} pair.
|
String |
groupsQuery
SQL query to retrieve the groups associated with the caller when authentication succeeds.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
dataSourceLookup
Full JNDI name of the data source that provides access to the data base where the
caller identities are stored.
|
String |
hashAlgorithm
Hash algorithm applied to plain text password for comparison with password
returned from
groupsQuery() . |
String |
hashEncoding
Encoding used for hash.
|
int |
priority
Determines the order in case multiple IdentityStores are found.
|
IdentityStore.ValidationType[] |
useFor
Determines what the identity store is used for
|
public abstract String callerQuery
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 caller where name = ?
public abstract String groupsQuery
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 dataSourceLookup
public abstract String hashAlgorithm
groupsQuery()
.public abstract String hashEncoding
public abstract int priority
public abstract IdentityStore.ValidationType[] useFor
Copyright © 2015–2017. All rights reserved.