LoginModule imports a user's Unix
Principal information (UnixPrincipal,
UnixNumericUserPrincipal,
and UnixNumericGroupPrincipal)
and associates them with the current Subject.
This LoginModule recognizes the debug option. If set to true in the login Configuration, debug messages will be output to the output stream, System.out.
| Modifier and Type | Field and Description |
|---|---|
| private CallbackHandler | |
| private boolean | |
| private boolean | |
| private UnixNumericGroupPrincipal | |
| private Map | |
| private Map | |
| private UnixSystem | |
| private Subject | |
| private boolean | |
| private LinkedList | |
| private UnixNumericUserPrincipal | |
| private UnixPrincipal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: false if this LoginModule's own login and/or commit attempts failed, and true otherwise.Implements javax. Abort the authentication (second phase). |
| public boolean | Returns: true if this LoginModule's own login and commit attempts succeeded, or false otherwise.Implements javax. Commit the authentication (second phase). |
| public void | initialize(Subject
the subject, CallbackHandler Subject to be authenticated.a callbackHandler, Map<String, ?> CallbackHandler for communicating
with the end user (prompting for usernames and
passwords, for example).shared sharedState, Map<String, ?> LoginModule state.options specified in the login
options)Configuration for this particular
LoginModule.Implements javax. Initialize this |
| public boolean | Returns: true in all cases (thisLoginModule
should not be ignored).Implements javax. Authenticate the user (first phase). |
| public boolean | Returns: true in all cases (thisLoginModule
should not be ignored).Implements javax. Logout the user This method removes the Principals associated
with the |
| callbackHandler | back to summary |
|---|---|
| private CallbackHandler callbackHandler | |
| commitSucceeded | back to summary |
|---|---|
| private boolean commitSucceeded | |
| debug | back to summary |
|---|---|
| private boolean debug | |
| GIDPrincipal | back to summary |
|---|---|
| private UnixNumericGroupPrincipal GIDPrincipal | |
| options | back to summary |
|---|---|
| private Map<String, ?> options | |
| sharedState | back to summary |
|---|---|
| private Map<String, ?> sharedState | |
| ss | back to summary |
|---|---|
| private UnixSystem ss | |
| subject | back to summary |
|---|---|
| private Subject subject | |
| succeeded | back to summary |
|---|---|
| private boolean succeeded | |
| supplementaryGroups | back to summary |
|---|---|
| private LinkedList<UnixNumericGroupPrincipal> supplementaryGroups | |
| UIDPrincipal | back to summary |
|---|---|
| private UnixNumericUserPrincipal UIDPrincipal | |
| userPrincipal | back to summary |
|---|---|
| private UnixPrincipal userPrincipal | |
| UnixLoginModule | back to summary |
|---|---|
| public UnixLoginModule() Creates a | |
| abort | back to summary |
|---|---|
| public boolean abort() throws LoginException Implements javax. Abort the authentication (second phase). This method is called if the LoginContext's overall authentication failed. (the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules did not succeed). This method cleans up any state that was originally saved
as part of the authentication attempt from the
| |
| commit | back to summary |
|---|---|
| public boolean commit() throws LoginException Implements javax. Commit the authentication (second phase). 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 (the importing of the Unix authentication information
succeeded), then this method associates the Unix Principals
with the
| |
| initialize | back to summary |
|---|---|
| public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Implements javax. Initialize this
| |
| login | back to summary |
|---|---|
| public boolean login() throws LoginException Implements javax. Authenticate the user (first phase). The implementation of this method attempts to retrieve the user's
Unix
| |
| logout | back to summary |
|---|---|
| public boolean logout() throws LoginException Implements javax. Logout the user This method removes the Principals associated
with the
| |