Public Member Functions | |
void | initialize (Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) |
boolean | login () throws LoginException |
boolean | commit () throws LoginException |
boolean | abort () throws LoginException |
boolean | logout () throws LoginException |
Alexandre Thaveau (add callback for certificates)
Marc-Antoine Bourgeot (add callback for certificates)
Definition at line 55 of file JResourceLoginModule.java.
|
Method to abort the authentication process (phase 2). 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.
Definition at line 271 of file JResourceLoginModule.java. |
|
Method to commit the authentication process (phase 2). 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.
Definition at line 237 of file JResourceLoginModule.java. References org.objectweb.jonas.security.auth.JGroup.addMember(). |
Here is the call graph for this function:
|
Initialize this LoginModule. 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.
Definition at line 105 of file JResourceLoginModule.java. |
|
Method to authenticate a Subject (phase 1). The implementation of this method authenticates a Subject. For example, it may prompt for Subject information such as a username and password and then attempt to verify the password. This method saves the result of the authentication attempt as private state within the LoginModule.
Definition at line 121 of file JResourceLoginModule.java. References org.objectweb.jonas.security.realm.factory.JResource.findUser(), org.objectweb.jonas.security.realm.factory.JResource.getArrayListCombinedRoles(), org.objectweb.jonas.security.realm.principals.User.getPassword(), org.objectweb.jonas.security.auth.callback.CertificateCallback.getUserCertificate(), and org.objectweb.jonas.security.realm.factory.JResource.isValidUser(). |
Here is the call graph for this function:
|
Method which logs out a Subject. An implementation of this method might remove/destroy a Subject's Principals and Credentials.
Definition at line 288 of file JResourceLoginModule.java. |