|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.realm.RealmBase org.objectweb.jonas.security.realm.web.catalina55.Standard
Implementation of a Realm. (by a wrapper) Use any JOnAS realm by specifying the resource name
Nested Class Summary |
Nested classes inherited from class org.apache.catalina.realm.RealmBase |
org.apache.catalina.realm.RealmBase.AllRolesMode |
Field Summary |
Fields inherited from class org.apache.catalina.realm.RealmBase |
allRolesMode, container, containerLog, controller, digest, digestEncoding, domain, host, info, initialized, lifecycle, md, md5Encoder, md5Helper, mserver, oname, path, sm, started, support, type, validate |
Fields inherited from interface org.apache.catalina.Lifecycle |
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
Constructor Summary | |
Standard()
|
Method Summary | |
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 . |
java.security.Principal |
authenticate(java.security.cert.X509Certificate[] cert)
Return the Principal associated with the specified chain of X509 client certificates. |
java.lang.String |
getInfo()
Return descriptive information about this Realm implementation and the corresponding version number, in the format <description>/<version> . |
protected java.lang.String |
getName()
Return a short name for this Realm implementation. |
protected java.lang.String |
getPassword(java.lang.String username)
Return the password associated with the given principal's user name. |
protected java.security.Principal |
getPrincipal(java.lang.String username)
Return the Principal associated with the given user name. |
java.lang.String |
getResourceName()
Return the resource name we will be using. |
protected void |
log(java.lang.String message)
Log a message on the Logger associated with our Container (if any) |
void |
setResourceName(java.lang.String resourceName)
Set the resource name we will be using. |
void |
start()
Prepare for active use of the public methods of this Component. |
void |
stop()
Gracefully shut down active use of the public methods of this Component. |
Methods inherited from class org.apache.catalina.realm.RealmBase |
addLifecycleListener, addPropertyChangeListener, authenticate, authenticate, backgroundProcess, destroy, digest, Digest, findLifecycleListeners, findSecurityConstraints, getAllRolesMode, getContainer, getController, getDigest, getDigest, getDigestEncoding, getDomain, getObjectName, getPrincipal, getType, getValidate, hasMessageDigest, hasResourcePermission, hasRole, hasUserDataPermission, init, main, postDeregister, postRegister, preDeregister, preRegister, removeLifecycleListener, removePropertyChangeListener, setAllRolesMode, setContainer, setController, setDigest, setDigestEncoding, setValidate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Standard()
Method Detail |
public java.lang.String getInfo()
<description>/<version>
.
public java.lang.String getResourceName()
public void setResourceName(java.lang.String resourceName)
resourceName
- The new resource namepublic java.security.Principal authenticate(java.lang.String username, java.lang.String credentials)
null
.
username
- Username of the Principal to look upcredentials
- Password or other credentials to use in authenticating
this username
public java.security.Principal authenticate(java.security.cert.X509Certificate[] cert)
null
.
cert
- Array of client certificates, with the first one in the array
being the certificate of the client itself.
protected java.lang.String getName()
protected java.lang.String getPassword(java.lang.String username)
username
- the given principal's user name.
protected java.security.Principal getPrincipal(java.lang.String username)
username
- the given principal's user name.
public void start() throws org.apache.catalina.LifecycleException
org.apache.catalina.LifecycleException
- if this component detects a fatal error
that prevents it from being startedpublic void stop() throws org.apache.catalina.LifecycleException
org.apache.catalina.LifecycleException
- if this component detects a fatal error
that needs to be reportedprotected void log(java.lang.String message)
message
- Message to be logged
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |