|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.jaas.CertificateLoginModule
public abstract class CertificateLoginModule
A LoginModule that allows for authentication based on SSL certificates. Allows for subclasses to define methods used to verify user certificates and find user groups. Uses CertificateCallbacks to retrieve certificates.
Constructor Summary | |
---|---|
CertificateLoginModule()
|
Method Summary | |
---|---|
boolean |
abort()
Standard JAAS override. |
boolean |
commit()
Overriding to complete login process. |
protected java.lang.String |
getDistinguishedName(java.security.cert.X509Certificate[] certs)
|
protected abstract java.util.Set |
getUserGroups(java.lang.String username)
Should return a set of the groups this user belongs to. |
protected abstract java.lang.String |
getUserNameForCertificates(java.security.cert.X509Certificate[] certs)
Should return a unique name corresponding to the certificates given. |
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.Map options)
Overriding to allow for proper initialization. |
boolean |
login()
Overriding to allow for certificate-based login. |
boolean |
logout()
Standard JAAS override. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CertificateLoginModule()
Method Detail |
---|
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
initialize
in interface javax.security.auth.spi.LoginModule
public boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
public boolean commit() throws javax.security.auth.login.LoginException
commit
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
public boolean abort() throws javax.security.auth.login.LoginException
abort
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
public boolean logout()
logout
in interface javax.security.auth.spi.LoginModule
protected abstract java.lang.String getUserNameForCertificates(java.security.cert.X509Certificate[] certs) throws javax.security.auth.login.LoginException
certs
- The distinguished name.
javax.security.auth.login.LoginException
protected abstract java.util.Set getUserGroups(java.lang.String username) throws javax.security.auth.login.LoginException
username
- The username of the client. This is the same name that
getUserNameForDn returned for the user's DN.
javax.security.auth.login.LoginException
protected java.lang.String getDistinguishedName(java.security.cert.X509Certificate[] certs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |