public class JettyHashUserRealmVerifier extends IdentityVerifierImpl
IdentityVerifier
implementation that uses the same file as HashLoginServiceFactory
to perform identity
verification.HashLoginServiceFactory
In the adapter configuration file this class is aliased as jetty-hash-user-realm-identity-verifier which is the preferred alternative to the fully qualified classname when building your configuration.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_PASSWORD
The key in the identity map that contains the username "password".
|
static java.lang.String |
KEY_ROLE
The key in the identity map that contains the role "role".
|
static java.lang.String |
KEY_USERNAME
The key in the identity map that contains the username "user".
|
log
Constructor and Description |
---|
JettyHashUserRealmVerifier() |
JettyHashUserRealmVerifier(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilename() |
void |
init()
Initialises the component.
|
void |
setFilename(java.lang.String filename) |
boolean |
validate(IdentityBuilder builder,
AdaptrisMessage msg) |
close, start, stop
public static final java.lang.String KEY_USERNAME
public static final java.lang.String KEY_PASSWORD
public static final java.lang.String KEY_ROLE
public JettyHashUserRealmVerifier()
public JettyHashUserRealmVerifier(java.lang.String filename)
public void init() throws CoreException
ComponentLifecycle
Component initialisation includes config verification, creation of connections etc.
init
in interface ComponentLifecycle
init
in class IdentityVerifierImpl
CoreException
- wrapping any underlying Exception
spublic boolean validate(IdentityBuilder builder, AdaptrisMessage msg)
public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename
- the filename to set