LoginModules. Subclasses should
implement getUser(String) method, and subclass JAASUser to implement
JAASUser#doFetchRoles() method.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private CallbackHandler | |
| private boolean | |
| private AbstractLoginModule. | |
| private Subject |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | abort()
Implements javax. Method to abort the authentication process (phase 2). |
| public boolean | Returns: true if committed, false if not (likely not authenticated)Implements javax. Method to commit the authentication process (phase 2). |
| public Callback[] | |
| public CallbackHandler | |
| public AbstractLoginModule. | |
| public Subject | |
| public abstract AbstractLoginModule. | |
| public void | initialize(Subject
the subject subject, CallbackHandler the callback handler callbackHandler, Map<String, ?> the shared state map sharedState, Map<String, ?> the option map options)Implements javax. Initialize this |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if is authenticated, false otherwiseImplements javax. Method to authenticate a |
| public boolean | Returns: true alwaysImplements javax. Method which logs out a |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| authState | back to summary |
|---|---|
| private boolean authState | |
| callbackHandler | back to summary |
|---|---|
| private CallbackHandler callbackHandler | |
| commitState | back to summary |
|---|---|
| private boolean commitState | |
| currentUser | back to summary |
|---|---|
| private AbstractLoginModule. | |
| subject | back to summary |
|---|---|
| private Subject subject | |
| AbstractLoginModule | back to summary |
|---|---|
| public AbstractLoginModule() | |
| abort | back to summary |
|---|---|
| public boolean abort() throws LoginException Implements javax. Doc from javax. 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
| |
| commit | back to summary |
|---|---|
| public boolean commit() throws LoginException Implements javax. Doc from javax. 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
| |
| configureCallbacks | back to summary |
|---|---|
| public Callback[] configureCallbacks() | |
| getCallbackHandler | back to summary |
|---|---|
| public CallbackHandler getCallbackHandler() | |
| getCurrentUser | back to summary |
|---|---|
| public AbstractLoginModule. | |
| getSubject | back to summary |
|---|---|
| public Subject getSubject() | |
| getUser | back to summary |
|---|---|
| public abstract AbstractLoginModule. | |
| initialize | back to summary |
|---|---|
| public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Implements javax. Doc from javax. Initialize this This method is called by the
| |
| isAuthenticated | back to summary |
|---|---|
| public boolean isAuthenticated() | |
| isCommitted | back to summary |
|---|---|
| public boolean isCommitted() | |
| isIgnored | back to summary |
|---|---|
| public boolean isIgnored() | |
| login | back to summary |
|---|---|
| public boolean login() throws LoginException Implements javax. Doc from javax. Method to authenticate a The implementation of this method authenticates
a
| |
| logout | back to summary |
|---|---|
| public boolean logout() throws LoginException Implements javax. Doc from javax. Method which logs out a An implementation of this method might remove/destroy a Subject's Principals and Credentials.
| |
| setAuthenticated | back to summary |
|---|---|
| public void setAuthenticated(boolean authState) | |
| setCallbackHandler | back to summary |
|---|---|
| public void setCallbackHandler(CallbackHandler h) | |
| setCommitted | back to summary |
|---|---|
| public void setCommitted(boolean commitState) | |
| setCurrentUser | back to summary |
|---|---|
| public void setCurrentUser(AbstractLoginModule. | |
| setSubject | back to summary |
|---|---|
| public void setSubject(Subject s) | |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private final UserPrincipal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public abstract List | |
| public void | |
| public String | |
| public void | |
| public void |
| _roles | back to summary |
|---|---|
| private List<JAASRole> _roles | |
| _user | back to summary |
|---|---|
| private final UserPrincipal _user | |
| JAASUser | back to summary |
|---|---|
| public JAASUser(UserPrincipal u) | |
| checkCredential | back to summary |
|---|---|
| public boolean checkCredential(Object suppliedCredential) | |
| doFetchRoles | back to summary |
|---|---|
| public abstract List | |
| fetchRoles | back to summary |
|---|---|
| public void fetchRoles() throws Exception | |
| getUserName | back to summary |
|---|---|
| public String getUserName() | |
| setJAASInfo | back to summary |
|---|---|
public void setJAASInfo(Subject subject)
| |
| unsetJAASInfo | back to summary |
|---|---|
public void unsetJAASInfo(Subject subject)
| |