|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.cams.auth.login.module.AESOX509CertLdapLoginModule
public class AESOX509CertLdapLoginModule
AESOX509CertLdapLoginModule is a JAAS LoginModule used
with Cams "Automatic Enterprise Sign-On" (AESO) and LDAP v3 compliant
directory servers.
This LoginModule is designed to trust a user identity authenticated at the web layer via X.509 client certificate authentication and use information available within the certificate to:
This LoginModule attempts to bind to an administrator account DN, then perform an LDAP query for an LDAP entry corresponding to user-specific DN obtained from the X.509 certificate callback value.
Role assignment is accomplished by use of an LDAP role filter, which queries Groups to which the user is assigned and maps them directly to roles.
Subject,
CallbackHandler,
LoginModule| Constructor Summary | |
|---|---|
AESOX509CertLdapLoginModule()
Default AESOX509CertLdapLoginModule Constructor. |
|
| Method Summary | |
|---|---|
boolean |
abort()
Method to abort the authentication process (phase 2). |
boolean |
commit()
Method to commit the authentication process (phase 2). |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
Initialize this LoginModule. |
boolean |
login()
Method to authenticate a Subject (phase 1). |
boolean |
logout()
Method which logs out a Subject. |
void |
setLogger(Logger logger)
Sets the logger. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AESOX509CertLdapLoginModule()
| Method Detail |
|---|
public void setLogger(Logger logger)
setLogger in interface LoggerClientlogger - logs messages
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
This method is called by the LoginContext
after this LoginModule has been instantiated.
The purpose of this method is to initialize this
LoginModule with the relevant information.
If this LoginModule does not understand
any of the data stored in sharedState or
options parameters, they can be ignored.
initialize in interface LoginModulesubject - the Subject to be authenticated.callbackHandler - a CallbackHandler for accessing
callback values (e.g. certChain).sharedState - state shared with other configured LoginModules.options - options specified in the login
Configuration for this particular
LoginModule.
public boolean login()
throws LoginException
Subject (phase 1).
login in interface LoginModuleLoginModule should be ignored.
LoginException - if the authentication fails
public boolean commit()
throws LoginException
This method is called if the LoginContext's overall authentication succeeded (the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules succeeded).
If this LoginModule's own authentication attempt
succeeded (checked by retrieving the private state saved by the
login method), then this method associates relevant
Principals and Credentials with the Subject located in the
LoginModule. If this LoginModule's own
authentication attempted failed, then this method removes/destroys
any state that was originally saved.
commit in interface LoginModuleLoginModule should be ignored.
LoginException - if the commit fails
public boolean abort()
throws LoginException
This method is called if the LoginContext's overall authentication failed. (the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules did not succeed).
If this LoginModule's own authentication attempt
succeeded (checked by retrieving the private state saved by the
login method), then this method cleans up any state
that was originally saved.
abort in interface LoginModuleLoginModule should be ignored.
LoginException - if the abort fails
public boolean logout()
throws LoginException
Subject.
An implementation of this method might remove/destroy a Subject's Principals and Credentials.
logout in interface LoginModuleLoginModule should be ignored.
LoginException - if the logout fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||