public class LazyRealm
extends org.apache.catalina.util.LifecycleBase
implements org.apache.catalina.Realm
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
LazyRealm() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
Principal |
authenticate(GSSContext gssContext,
boolean storeCreds) |
Principal |
authenticate(String s) |
Principal |
authenticate(String username,
String credentials) |
Principal |
authenticate(String username,
String digest,
String nonce,
String nc,
String cnonce,
String qop,
String realm,
String md5a2) |
Principal |
authenticate(X509Certificate[] certs) |
void |
backgroundProcess() |
protected void |
destroyInternal() |
org.apache.tomcat.util.descriptor.web.SecurityConstraint[] |
findSecurityConstraints(org.apache.catalina.connector.Request request,
org.apache.catalina.Context context) |
org.apache.catalina.Container |
getContainer() |
org.apache.catalina.CredentialHandler |
getCredentialHandler() |
String[] |
getRoles(Principal principal) |
boolean |
hasResourcePermission(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.tomcat.util.descriptor.web.SecurityConstraint[] constraint,
org.apache.catalina.Context context) |
boolean |
hasRole(org.apache.catalina.Wrapper wrapper,
Principal principal,
String role) |
boolean |
hasUserDataPermission(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.tomcat.util.descriptor.web.SecurityConstraint[] constraint) |
protected void |
initInternal() |
boolean |
isAvailable() |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
setCdi(boolean cdi) |
void |
setContainer(org.apache.catalina.Container container) |
void |
setCredentialHandler(org.apache.catalina.CredentialHandler credentialHandler) |
void |
setProperties(String properties) |
void |
setRealmClass(String realmClass) |
protected void |
startInternal() |
protected void |
stopInternal() |
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stoppublic void setRealmClass(String realmClass)
public void setProperties(String properties)
public void setCdi(boolean cdi)
protected void initInternal()
throws org.apache.catalina.LifecycleException
initInternal in class org.apache.catalina.util.LifecycleBaseorg.apache.catalina.LifecycleExceptionprotected void startInternal()
throws org.apache.catalina.LifecycleException
startInternal in class org.apache.catalina.util.LifecycleBaseorg.apache.catalina.LifecycleExceptionprotected void stopInternal()
throws org.apache.catalina.LifecycleException
stopInternal in class org.apache.catalina.util.LifecycleBaseorg.apache.catalina.LifecycleExceptionprotected void destroyInternal()
throws org.apache.catalina.LifecycleException
destroyInternal in class org.apache.catalina.util.LifecycleBaseorg.apache.catalina.LifecycleExceptionpublic org.apache.catalina.Container getContainer()
getContainer in interface org.apache.catalina.Containedpublic void setContainer(org.apache.catalina.Container container)
setContainer in interface org.apache.catalina.Containedpublic org.apache.catalina.CredentialHandler getCredentialHandler()
getCredentialHandler in interface org.apache.catalina.Realmpublic void setCredentialHandler(org.apache.catalina.CredentialHandler credentialHandler)
setCredentialHandler in interface org.apache.catalina.Realmpublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface org.apache.catalina.Realmpublic Principal authenticate(String s)
authenticate in interface org.apache.catalina.Realmpublic Principal authenticate(String username, String credentials)
authenticate in interface org.apache.catalina.Realmpublic Principal authenticate(String username, String digest, String nonce, String nc, String cnonce, String qop, String realm, String md5a2)
authenticate in interface org.apache.catalina.Realmpublic Principal authenticate(GSSContext gssContext, boolean storeCreds)
authenticate in interface org.apache.catalina.Realmpublic Principal authenticate(X509Certificate[] certs)
authenticate in interface org.apache.catalina.Realmpublic void backgroundProcess()
backgroundProcess in interface org.apache.catalina.Realmpublic org.apache.tomcat.util.descriptor.web.SecurityConstraint[] findSecurityConstraints(org.apache.catalina.connector.Request request,
org.apache.catalina.Context context)
findSecurityConstraints in interface org.apache.catalina.Realmpublic boolean hasResourcePermission(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.tomcat.util.descriptor.web.SecurityConstraint[] constraint,
org.apache.catalina.Context context)
throws IOException
hasResourcePermission in interface org.apache.catalina.RealmIOExceptionpublic boolean hasRole(org.apache.catalina.Wrapper wrapper,
Principal principal,
String role)
hasRole in interface org.apache.catalina.Realmpublic boolean hasUserDataPermission(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.tomcat.util.descriptor.web.SecurityConstraint[] constraint)
throws IOException
hasUserDataPermission in interface org.apache.catalina.RealmIOExceptionpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface org.apache.catalina.Realmpublic String[] getRoles(Principal principal)
getRoles in interface org.apache.catalina.Realmpublic boolean isAvailable()
isAvailable in interface org.apache.catalina.RealmCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.