org.apache.catalina.realm
public class CombinedRealm extends RealmBase
Field Summary | |
---|---|
protected List<Realm> | realms
The list of Realms contained by this Realm. |
protected static StringManager | sm
The string manager for this package. |
Method Summary | |
---|---|
void | addRealm(Realm theRealm)
Add a realm to the list of realms that will be used to authenticate
users. |
Principal | authenticate(String username, byte[] credentials)
Return the Principal associated with the specified username and
credentials, if there is one; otherwise return null .
|
Principal | authenticate(String username, String clientDigest, String once, String nc, String cnonce, String qop, String realmName, String md5a2)
Return the Principal associated with the specified username, which
matches the digest calculated using the given parameters using the
method described in RFC 2069; otherwise return null .
|
Principal | authenticate(String username, String credentials)
Return the Principal associated with the specified username and
credentials, if there is one; otherwise return null .
|
Principal | authenticate(X509Certificate[] certs)
Return the Principal associated with the specified chain of X509
client certificates. |
ObjectName[] | getRealms()
Return the set of Realms that this Realm is wrapping |
void | setContainer(Container container)
Set the Container with which this Realm has been associated.
|
void | start()
Prepare for the beginning of active use of the public methods of this
component. |
void | stop()
Gracefully terminate the active use of the public methods of this
component. |
null
.
Parameters: username Username of the Principal to look up credentials Password or other credentials to use in authenticating this username
null
.
Parameters: username Username of the Principal to look up clientDigest Digest which has been submitted by the client nOnce Unique (or supposedly unique) token which has been used for this request realm Realm name md5a2 Second MD5 digest used to calculate the digest : MD5(Method + ":" + uri)
null
.
Parameters: username Username of the Principal to look up credentials Password or other credentials to use in authenticating this username
null
.
Parameters: certs Array of client certificates, with the first one in the array being the certificate of the client itself.
Parameters: container The associated Container
Throws: LifecycleException if this component detects a fatal error that prevents this component from being used
Throws: LifecycleException if this component detects a fatal error that needs to be reported