org.apache.tomee.catalina.realm
Class LazyRealm

java.lang.Object
  extended by org.apache.catalina.util.LifecycleBase
      extended by org.apache.tomee.catalina.realm.LazyRealm
All Implemented Interfaces:
org.apache.catalina.Lifecycle, org.apache.catalina.Realm

public class LazyRealm
extends org.apache.catalina.util.LifecycleBase
implements org.apache.catalina.Realm


Field Summary
 
Fields inherited from interface org.apache.catalina.Lifecycle
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 Summary
LazyRealm()
           
 
Method Summary
 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.catalina.deploy.SecurityConstraint[] findSecurityConstraints(org.apache.catalina.connector.Request request, org.apache.catalina.Context context)
           
 org.apache.catalina.Container getContainer()
           
 String getInfo()
           
 boolean hasResourcePermission(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response, org.apache.catalina.deploy.SecurityConstraint[] securityConstraints, 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.catalina.deploy.SecurityConstraint[] securityConstraints)
           
protected  void initInternal()
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void setCdi(boolean cdi)
           
 void setContainer(org.apache.catalina.Container container)
           
 void setName(String name)
           
 void setProperties(String properties)
           
 void setRealmClass(String realmClass)
           
protected  void startInternal()
           
protected  void stopInternal()
           
 
Methods inherited from class org.apache.catalina.util.LifecycleBase
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyRealm

public LazyRealm()
Method Detail

setName

public void setName(String name)

setRealmClass

public void setRealmClass(String realmClass)

setProperties

public void setProperties(String properties)

setCdi

public void setCdi(boolean cdi)

initInternal

protected void initInternal()
                     throws org.apache.catalina.LifecycleException
Specified by:
initInternal in class org.apache.catalina.util.LifecycleBase
Throws:
org.apache.catalina.LifecycleException

startInternal

protected void startInternal()
                      throws org.apache.catalina.LifecycleException
Specified by:
startInternal in class org.apache.catalina.util.LifecycleBase
Throws:
org.apache.catalina.LifecycleException

stopInternal

protected void stopInternal()
                     throws org.apache.catalina.LifecycleException
Specified by:
stopInternal in class org.apache.catalina.util.LifecycleBase
Throws:
org.apache.catalina.LifecycleException

destroyInternal

protected void destroyInternal()
                        throws org.apache.catalina.LifecycleException
Specified by:
destroyInternal in class org.apache.catalina.util.LifecycleBase
Throws:
org.apache.catalina.LifecycleException

getContainer

public org.apache.catalina.Container getContainer()
Specified by:
getContainer in interface org.apache.catalina.Realm

setContainer

public void setContainer(org.apache.catalina.Container container)
Specified by:
setContainer in interface org.apache.catalina.Realm

getInfo

public String getInfo()
Specified by:
getInfo in interface org.apache.catalina.Realm

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface org.apache.catalina.Realm

authenticate

public Principal authenticate(String s)
Specified by:
authenticate in interface org.apache.catalina.Realm

authenticate

public Principal authenticate(String username,
                              String credentials)
Specified by:
authenticate in interface org.apache.catalina.Realm

authenticate

public Principal authenticate(String username,
                              String digest,
                              String nonce,
                              String nc,
                              String cnonce,
                              String qop,
                              String realm,
                              String md5a2)
Specified by:
authenticate in interface org.apache.catalina.Realm

authenticate

public Principal authenticate(GSSContext gssContext,
                              boolean storeCreds)
Specified by:
authenticate in interface org.apache.catalina.Realm

authenticate

public Principal authenticate(X509Certificate[] certs)
Specified by:
authenticate in interface org.apache.catalina.Realm

backgroundProcess

public void backgroundProcess()
Specified by:
backgroundProcess in interface org.apache.catalina.Realm

findSecurityConstraints

public org.apache.catalina.deploy.SecurityConstraint[] findSecurityConstraints(org.apache.catalina.connector.Request request,
                                                                               org.apache.catalina.Context context)
Specified by:
findSecurityConstraints in interface org.apache.catalina.Realm

hasResourcePermission

public boolean hasResourcePermission(org.apache.catalina.connector.Request request,
                                     org.apache.catalina.connector.Response response,
                                     org.apache.catalina.deploy.SecurityConstraint[] securityConstraints,
                                     org.apache.catalina.Context context)
                              throws IOException
Specified by:
hasResourcePermission in interface org.apache.catalina.Realm
Throws:
IOException

hasRole

public boolean hasRole(org.apache.catalina.Wrapper wrapper,
                       Principal principal,
                       String role)
Specified by:
hasRole in interface org.apache.catalina.Realm

hasUserDataPermission

public boolean hasUserDataPermission(org.apache.catalina.connector.Request request,
                                     org.apache.catalina.connector.Response response,
                                     org.apache.catalina.deploy.SecurityConstraint[] securityConstraints)
                              throws IOException
Specified by:
hasUserDataPermission in interface org.apache.catalina.Realm
Throws:
IOException

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface org.apache.catalina.Realm


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.