LoginModule
renders a user's NT security information as some number of
Principals
and associates them with a 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.
This LoginModule also recognizes the debugNative option. If set to true in the login Configuration, debug messages from the native component of the module will be output to the output stream, System.out.
javax.security.auth.spi.LoginModule
| Modifier and Type | Field and Description |
|---|---|
| private CallbackHandler | |
| private boolean | |
| private boolean | |
| private boolean | |
| private NTSidDomainPrincipal | |
| private NTSidGroupPrincipal[] | |
| private NTNumericCredential | |
| private NTSystem | |
| private Map | |
| private NTSidPrimaryGroupPrincipal | |
| private Map | |
| private Subject | |
| private boolean | |
| private NTDomainPrincipal | |
| private NTUserPrincipal | |
| private NTSidUserPrincipal |
| 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. This method is called if the LoginContext's overall authentication failed. |
| public boolean | Returns: true if this LoginModule's own login and commit attempts succeeded, or false otherwise.Implements javax. This method is called if the LoginContext's overall authentication succeeded (the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules succeeded). |
| 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). This particular LoginModule only
extracts the underlying NT system information, so this
parameter is ignored.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 since thisLoginModule
should not be ignored.Implements javax. Import underlying NT system identity information. |
| public boolean | Returns: true in all cases since thisLoginModule
should not be ignored.Implements javax. Logout the user. |
| callbackHandler | back to summary |
|---|---|
| private CallbackHandler callbackHandler | |
| commitSucceeded | back to summary |
|---|---|
| private boolean commitSucceeded | |
| debug | back to summary |
|---|---|
| private boolean debug | |
| debugNative | back to summary |
|---|---|
| private boolean debugNative | |
| domainSID | back to summary |
|---|---|
| private NTSidDomainPrincipal domainSID | |
| groups | back to summary |
|---|---|
| private NTSidGroupPrincipal[] groups | |
| iToken | back to summary |
|---|---|
| private NTNumericCredential iToken | |
| ntSystem | back to summary |
|---|---|
| private NTSystem ntSystem | |
| options | back to summary |
|---|---|
| private Map<String, ?> options | |
| primaryGroup | back to summary |
|---|---|
| private NTSidPrimaryGroupPrincipal primaryGroup | |
| sharedState | back to summary |
|---|---|
| private Map<String, ?> sharedState | |
| subject | back to summary |
|---|---|
| private Subject subject | |
| succeeded | back to summary |
|---|---|
| private boolean succeeded | |
| userDomain | back to summary |
|---|---|
| private NTDomainPrincipal userDomain | |
| userPrincipal | back to summary |
|---|---|
| private NTUserPrincipal userPrincipal | |
| userSID | back to summary |
|---|---|
| private NTSidUserPrincipal userSID | |
| NTLoginModule | back to summary |
|---|---|
| public NTLoginModule() Creates an | |
| abort | back to summary |
|---|---|
| public boolean abort() throws LoginException Implements javax. 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
| |
| commit | back to summary |
|---|---|
| public boolean commit() throws LoginException Implements javax. 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
| |
| 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. Import underlying NT system identity information.
| |
| logout | back to summary |
|---|---|
| public boolean logout() throws LoginException Implements javax. Logout the user. This method removes the
| |