|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.realm.RealmBase
org.acegisecurity.adapters.catalina.CatalinaAcegiUserRealm
public class CatalinaAcegiUserRealm
Adapter to enable Catalina (Tomcat) to authenticate via the Acegi Security System for Spring.
Returns a PrincipalAcegiUserToken to Catalina's authentication
system, which is subsequently available via
HttpServletRequest.getUserPrincipal().
| Field Summary | |
|---|---|
protected String |
name
|
| Fields inherited from class org.apache.catalina.realm.RealmBase |
|---|
debug, digest, info, lifecycle, md, md5Encoder, md5Helper, sm, started, support, validate |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
CatalinaAcegiUserRealm()
|
|
| Method Summary | |
|---|---|
Principal |
authenticate(String username,
byte[] credentials)
|
Principal |
authenticate(String username,
String credentials)
|
Principal |
authenticate(String username,
String digest,
String nonce,
String nc,
String cnonce,
String qop,
String realm,
String md5a2)
Not supported, returns null |
Principal |
authenticate(X509Certificate[] x509Certificates)
Not supported, returns null |
String |
getAppContextLocation()
|
String |
getKey()
|
protected String |
getName()
|
protected String |
getPassword(String arg0)
Always returns null (we override authenticate methods) |
protected Principal |
getPrincipal(String arg0)
Always returns null (we override authenticate methods) |
boolean |
hasRole(Principal principal,
String role)
|
void |
setAppContextLocation(String appContextLocation)
|
void |
setKey(String key)
|
void |
start()
Provides the method that Catalina will use to start the container. |
protected void |
startForTest()
Provides a method to load the container adapter without delegating to the superclass, which cannot operate outside the Catalina container. |
| Methods inherited from class org.apache.catalina.realm.RealmBase |
|---|
addLifecycleListener, addPropertyChangeListener, digest, Digest, findLifecycleListeners, getContainer, getDebug, getDigest, getDigest, getInfo, getValidate, hasMessageDigest, log, log, main, removeLifecycleListener, removePropertyChangeListener, setContainer, setDebug, setDigest, setValidate, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String name
| Constructor Detail |
|---|
public CatalinaAcegiUserRealm()
| Method Detail |
|---|
public void setAppContextLocation(String appContextLocation)
public String getAppContextLocation()
public void setKey(String key)
public String getKey()
public Principal authenticate(String username,
String credentials)
authenticate in interface org.apache.catalina.Realmauthenticate in class org.apache.catalina.realm.RealmBase
public Principal authenticate(String username,
byte[] credentials)
authenticate in interface org.apache.catalina.Realmauthenticate in class org.apache.catalina.realm.RealmBase
public Principal authenticate(String username,
String digest,
String nonce,
String nc,
String cnonce,
String qop,
String realm,
String md5a2)
authenticate in interface org.apache.catalina.Realmauthenticate in class org.apache.catalina.realm.RealmBaseusername - DOCUMENT ME!digest - DOCUMENT ME!nonce - DOCUMENT ME!nc - DOCUMENT ME!cnonce - DOCUMENT ME!qop - DOCUMENT ME!realm - DOCUMENT ME!md5a2 - DOCUMENT ME!
public Principal authenticate(X509Certificate[] x509Certificates)
authenticate in interface org.apache.catalina.Realmauthenticate in class org.apache.catalina.realm.RealmBasex509Certificates - DOCUMENT ME!
public boolean hasRole(Principal principal,
String role)
hasRole in interface org.apache.catalina.RealmhasRole in class org.apache.catalina.realm.RealmBase
public void start()
throws org.apache.catalina.LifecycleException
start in interface org.apache.catalina.Lifecyclestart in class org.apache.catalina.realm.RealmBaseorg.apache.catalina.LifecycleException - if a problem is detectedprotected String getName()
getName in class org.apache.catalina.realm.RealmBaseprotected String getPassword(String arg0)
getPassword in class org.apache.catalina.realm.RealmBasearg0 - DOCUMENT ME!
protected Principal getPrincipal(String arg0)
getPrincipal in class org.apache.catalina.realm.RealmBasearg0 - DOCUMENT ME!
protected void startForTest()
throws org.apache.catalina.LifecycleException
org.apache.catalina.LifecycleException - if a problem is detected
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||