| java.lang.Object org.cougaar.lib.web.tomcat.SecureRealm
SecureRealm | public class SecureRealm implements Realm(Code) | | A Realm extension for Tomcat 4.0 that will use
org.cougaar.core.security.crypto.ldap.KeyRingJNDIRealm if it
exists and the System property
org.cougaar.lib.web.tomcat.enableAuth
is "true".
The server.xml should have within the <Engine> section:
<Realm className="org.cougaar.lib.web.tomcat.SecureRealm" />
|
Constructor Summary | |
public | SecureRealm() Default constructor. |
Method Summary | |
public void | addPropertyChangeListener(PropertyChangeListener listener) Uses the KeyRingJNDIRealm's addPropertyChangeListener if available. | public Principal | authenticate(String username, String credentials) Authenticates using the KeyRingJNDIRealm if available. | public Principal | authenticate(String username, byte[] credentials) Authenticates using the KeyRingJNDIRealm if available. | public Principal | authenticate(X509Certificate certs) Authenticates using the KeyRingJNDIRealm if available. | public Principal | authenticate(String username, String clientDigest, String nOnce, String nc, String cnonce, String qop, String realm, String md5a2) Authenticates using the KeyRingJNDIRealm if available. | public Container | getContainer() | public String | getInfo() Uses the KeyRingJNDIRealm getInfo() if available. | public Realm | getRealm() returns the KeyRingJNDIRealm if it is available. | public boolean | hasRole(Principal user, String role) Uses the KeyRingJNDIRealm hasRole() if available. | public void | removePropertyChangeListener(PropertyChangeListener listener) Uses the KeyRingJNDIRealm removePropertyChangeListener() if available. | public void | setContainer(Container container) Uses the KeyRingJNDIRealm setContainer() if available. |
SecureRealm | public SecureRealm()(Code) | | Default constructor.
|
addPropertyChangeListener | public void addPropertyChangeListener(PropertyChangeListener listener)(Code) | | Uses the KeyRingJNDIRealm's addPropertyChangeListener if available.
|
authenticate | public Principal authenticate(String username, String credentials)(Code) | | Authenticates using the KeyRingJNDIRealm if available.
|
authenticate | public Principal authenticate(String username, byte[] credentials)(Code) | | Authenticates using the KeyRingJNDIRealm if available.
|
getContainer | public Container getContainer()(Code) | | Uses the KeyRingJNDIRealm getContainer() if available
|
getInfo | public String getInfo()(Code) | | Uses the KeyRingJNDIRealm getInfo() if available. Otherwise it returns
"SecureRealm";
|
getRealm | public Realm getRealm()(Code) | | returns the KeyRingJNDIRealm if it is available.
|
hasRole | public boolean hasRole(Principal user, String role)(Code) | | Uses the KeyRingJNDIRealm hasRole() if available. Otherwise it returns
false always
|
removePropertyChangeListener | public void removePropertyChangeListener(PropertyChangeListener listener)(Code) | | Uses the KeyRingJNDIRealm removePropertyChangeListener() if available.
|
setContainer | public void setContainer(Container container)(Code) | | Uses the KeyRingJNDIRealm setContainer() if available. Otherwise it
sets the value to be returned by getContainer()
|
|
|