Methods Summary |
---|
public void | addPropertyChangeListener(java.beans.PropertyChangeListener listener)Add a property change listener to this component.
|
public java.security.Principal | authenticate(java.lang.String username, java.lang.String credentials)Return the Principal associated with the specified username and
credentials, if there is one; otherwise return null .
|
public java.security.Principal | authenticate(java.lang.String username, byte[] credentials)Return the Principal associated with the specified username and
credentials, if there is one; otherwise return null .
|
public java.security.Principal | authenticate(java.lang.String username, java.lang.String digest, java.lang.String nonce, java.lang.String nc, java.lang.String cnonce, java.lang.String qop, java.lang.String realm, java.lang.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 .
|
public java.security.Principal | authenticate(java.security.cert.X509Certificate[] certs)Return the Principal associated with the specified chain of X509
client certificates. If there is none, return null .
|
public org.apache.catalina.deploy.SecurityConstraint[] | findSecurityConstraints(HttpRequest request, Context context)Return the SecurityConstraints configured to guard the request URI for
this request, or null if there is no such constraint.
|
public java.lang.String | getAlternateAuthType(HttpRequest req)Return an alternate auth type from the request if available.
|
public java.security.Principal | getAlternatePrincipal(HttpRequest req)Return an alternate principal from the request if available.
|
public Container | getContainer()Return the Container with which this Realm has been associated.
|
public java.lang.String | getInfo()Return descriptive information about this Realm implementation and
the corresponding version number, in the format
<description>/<version> .
|
public java.lang.String | getRealmName()Returns the name of the associated realm.
|
public boolean | hasResourcePermission(HttpRequest request, HttpResponse response, org.apache.catalina.deploy.SecurityConstraint[] constraint, Context context)Perform access control based on the specified authorization constraint.
Return true if this constraint is satisfied and processing
should continue, or false otherwise.
|
public boolean | hasRole(java.security.Principal principal, java.lang.String role)Return true if the specified Principal has the specified
security role, within the context of this Realm; otherwise return
false .
|
public boolean | hasRole(HttpRequest request, HttpResponse response, java.security.Principal principal, java.lang.String role)Return true if the specified Principal has the specified
security role, within the context of this Realm; otherwise return
false .
|
public boolean | hasUserDataPermission(HttpRequest request, HttpResponse response, org.apache.catalina.deploy.SecurityConstraint[] constraint)Enforce any user data constraint required by the security constraint
guarding this request URI. Return true if this constraint
was not violated and processing should continue, or false
if we have created a response already.
|
public boolean | invokeAuthenticateDelegate(HttpRequest request, HttpResponse response, Context context, Authenticator authenticator)Authenticates the user making this request, based on the specified
login configuration. Return true if any specified
requirements have been satisfied, or false if we have
created a response challenge already.
|
public boolean | invokePostAuthenticateDelegate(HttpRequest request, HttpResponse response, Context context)Post authentication for given request and response.
|
public int | preAuthenticateCheck(HttpRequest request, HttpResponse response, org.apache.catalina.deploy.SecurityConstraint[] constraints, boolean disableProxyCaching, boolean securePagesWithPragma, boolean ssoEnabled)Checks whether or not authentication is needed.
Returns an int, one of AUTHENTICATE_NOT_NEEDED, AUTHENTICATE_NEEDED,
or AUTHENTICATED_NOT_AUTHORIZED.
|
public void | removePropertyChangeListener(java.beans.PropertyChangeListener listener)Remove a property change listener from this component.
|
public void | setContainer(Container container)Set the Container with which this Realm has been associated.
|
public void | setRealmName(java.lang.String name, java.lang.String authMethod)Set the name of the associated realm.
|