| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| protected final List | realms
The list of Realms contained by this Realm. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Principal | authenticate(String
Username of the Principal to look up username, String Digest which has been submitted by the client clientDigest, String Unique (or supposedly unique) token which has been used
for this request nonce, String the nonce counter nc, String the client chosen nonce cnonce, String the "quality of protection" ( qop, String nc and cnonce
will only be used, if qop is not null).Realm name realmName, String Second digest calculated as digest(Method + ":" + uri) digestA2, String The message digest algorithm to use algorithm)Overrides org. Overrides default org. Try to authenticate with the specified username, which matches the digest calculated using the given parameters using the method described in RFC 7616. |
| public Principal | authenticate(String
Username of the Principal to look up username)Overrides org. Implements org. Try to authenticate with the specified username. |
| public Principal | authenticate(String
Username of the Principal to look up username, String Password or other credentials to use in
authenticating this username credentials)Overrides org. Implements org. Try to authenticate using the specified username and credentials. |
| public Principal | authenticate(X509Certificate[]
Array of client certificates, with the first one in
the array being the certificate of the client itself. certs)Overrides org. Implements org. Try to authenticate using a chain of |
| public Principal | authenticate(GSSContext
The gssContext processed by the gssContext, boolean Authenticator.Should the realm attempt to store the delegated
credentials in the returned Principal? storeCred)Overrides org. Implements org. Try to authenticate using a |
| public Principal | authenticate(GSSName
The gssName, GSSCredential GSSName of the principal to look upThe gssCredential)GSSCredential of the principal, may be
nullOverrides org. Implements org. Try to authenticate using a |
| public void | backgroundProcess()
Overrides org. Implements org. Delegate the backgroundProcess call to all sub-realms. |
| protected void | destroyInternal()
Overrides org. Ensure child Realms are destroyed when this Realm is destroyed. |
| public Realm[] | |
| protected String | getPassword(String
The user name username)Implements abstract org. Get the password for the specified user. |
| protected Principal | getPrincipal(String
The user name username)Implements abstract org. Get the principal associated with the specified user. |
| public ObjectName[] | |
| public boolean | hasRole(Wrapper
wrapper context for evaluating role wrapper, Principal Principal for whom the role is to be checked principal, String Security role to be checked role)Overrides org. Implements org. Check if the specified Principal has the specified security role, within the context of this Realm. |
| public boolean | isAvailable()
Overrides default org. Return the availability of the realm for authentication. |
| public void | setContainer(Container
The Container instance with which this instance is to
be associated, or container)null to disassociate this instance
from any ContainerOverrides org. Implements org. Set the |
| public void | setCredentialHandler(CredentialHandler
the credentialHandler)CredentialHandler to useOverrides org. Implements org. Set the CredentialHandler to be used by this Realm. |
| protected void | startInternal()
Overrides org. Prepare for the beginning of active use of the public methods of this component and implement the requirements of
|
| protected void | stopInternal()
Overrides org. Gracefully terminate the active use of the public methods of this component and implement the requirements of
|
| log | back to summary |
|---|---|
| private static final Log log | |
| realms | back to summary |
|---|---|
| protected final List<Realm> realms The list of Realms contained by this Realm. | |
| CombinedRealm | back to summary |
|---|---|
| public CombinedRealm() | |
| addRealm | back to summary |
|---|---|
| public void addRealm(Realm theRealm) Add a realm to the list of realms that will be used to authenticate users.
| |
| authenticate | back to summary |
|---|---|
| public Principal authenticate(String username, String clientDigest, String nonce, String nc, String cnonce, String qop, String realmName, String digestA2, String algorithm) Overrides org. Overrides default org. Doc from org. Try to authenticate with the specified username, which matches the digest calculated using the given parameters using the method described in RFC 7616.
The default implementation calls Implementations are expected to override the default implementation and take account of the algorithm parameter.
| |
| authenticate | back to summary |
|---|---|
| public Principal authenticate(String username) Overrides org. Implements org. Doc from org. Try to authenticate with the specified username. | |
| authenticate | back to summary |
|---|---|
| public Principal authenticate(String username, String credentials) Overrides org. Implements org. Doc from org. Try to authenticate using the specified username and credentials. | |
| authenticate | back to summary |
|---|---|
| public Principal authenticate(X509Certificate[] certs) Overrides org. Implements org. Doc from org. Try to authenticate using a chain of
| |
| authenticate | back to summary |
|---|---|
| public Principal authenticate(GSSContext gssContext, boolean storeCred) Overrides org. Implements org. Doc from org. Try to authenticate using a
| |
| authenticate | back to summary |
|---|---|
| public Principal authenticate(GSSName gssName, GSSCredential gssCredential) Overrides org. Implements org. Doc from org. Try to authenticate using a
| |
| backgroundProcess | back to summary |
|---|---|
| public void backgroundProcess() Overrides org. Implements org. Delegate the backgroundProcess call to all sub-realms.
| |
| destroyInternal | back to summary |
|---|---|
| protected void destroyInternal() throws LifecycleException Overrides org. Ensure child Realms are destroyed when this Realm is destroyed.
| |
| getNestedRealms | back to summary |
|---|---|
public Realm[] getNestedRealms()
| |
| getPassword | back to summary |
|---|---|
| protected String getPassword(String username) Implements abstract org. Doc from org. Get the password for the specified user. | |
| getPrincipal | back to summary |
|---|---|
| protected Principal getPrincipal(String username) Implements abstract org. Doc from org. Get the principal associated with the specified user. | |
| getRealms | back to summary |
|---|---|
public ObjectName[] getRealms()
| |
| hasRole | back to summary |
|---|---|
| public boolean hasRole(Wrapper wrapper, Principal principal, String role) Overrides org. Implements org. Doc from org. Check if the specified Principal has the specified security role, within the context of this Realm.
This method or
| |
| isAvailable | back to summary |
|---|---|
| public boolean isAvailable() Overrides default org. Doc from org. Return the availability of the realm for authentication.
| |
| setContainer | back to summary |
|---|---|
| public void setContainer(Container container) Overrides org. Implements org. Doc from org. Set the | |
| setCredentialHandler | back to summary |
|---|---|
| public void setCredentialHandler(CredentialHandler credentialHandler) Overrides org. Implements org. Doc from org. Set the CredentialHandler to be used by this Realm.
| |
| startInternal | back to summary |
|---|---|
| protected void startInternal() throws LifecycleException Overrides org. Doc from org. Prepare for the beginning of active use of the public methods of this component and implement the requirements of
| |
| stopInternal | back to summary |
|---|---|
| protected void stopInternal() throws LifecycleException Overrides org. Doc from org. Gracefully terminate the active use of the public methods of this component and implement the requirements of
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | matches(String
User provided credentials inputCredentials, String Credentials stored in the storedCredentials)RealmImplements org. Checks to see if the input credentials match the stored credentials |
| public String | mutate(String
User provided credentials inputCredentials)Implements org. Generates the equivalent stored credentials for the given input credentials. |
| CombinedRealmCredentialHandler | back to summary |
|---|---|
| private CombinedRealmCredentialHandler() | |
| matches | back to summary |
|---|---|
| public boolean matches(String inputCredentials, String storedCredentials) Implements org. Doc from org. Checks to see if the input credentials match the stored credentials | |
| mutate | back to summary |
|---|---|
| public String mutate(String inputCredentials) Implements org. Doc from org. Generates the equivalent stored credentials for the given input credentials. | |