Package com.adaptris.core.http.jetty
Class JettyHashUserRealmVerifier
- java.lang.Object
-
- com.adaptris.core.security.access.IdentityVerifierImpl
-
- com.adaptris.core.http.jetty.JettyHashUserRealmVerifier
-
- All Implemented Interfaces:
ComponentLifecycle
,IdentityVerifier
public class JettyHashUserRealmVerifier extends IdentityVerifierImpl
IdentityVerifier
implementation that uses the same file asHashLoginServiceFactory
to perform identity verification.- See Also:
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.
-
-
Field Summary
Fields Modifier and Type Field 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".-
Fields inherited from class com.adaptris.core.security.access.IdentityVerifierImpl
log
-
-
Constructor Summary
Constructors Constructor Description JettyHashUserRealmVerifier()
JettyHashUserRealmVerifier(java.lang.String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFilename()
void
init()
Initialises the component.void
setFilename(java.lang.String filename)
boolean
validate(IdentityBuilder builder, AdaptrisMessage msg)
-
Methods inherited from class com.adaptris.core.security.access.IdentityVerifierImpl
close, start, stop
-
-
-
-
Field Detail
-
KEY_USERNAME
public static final java.lang.String KEY_USERNAME
The key in the identity map that contains the username "user".- See Also:
- Constant Field Values
-
KEY_PASSWORD
public static final java.lang.String KEY_PASSWORD
The key in the identity map that contains the username "password".- See Also:
- Constant Field Values
-
KEY_ROLE
public static final java.lang.String KEY_ROLE
The key in the identity map that contains the role "role".- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init() throws CoreException
Description copied from interface:ComponentLifecycle
Initialises the component.Component initialisation includes config verification, creation of connections etc.
- Specified by:
init
in interfaceComponentLifecycle
- Overrides:
init
in classIdentityVerifierImpl
- Throws:
CoreException
- wrapping any underlyingException
s
-
validate
public boolean validate(IdentityBuilder builder, AdaptrisMessage msg)
-
getFilename
public java.lang.String getFilename()
- Returns:
- the filename
-
setFilename
public void setFilename(java.lang.String filename)
- Parameters:
filename
- the filename to set
-
-