public class CallerIdentityLoginModule extends AbstractPasswordCredentialLoginModule
org.jboss.security.SimplePrincipal.
ConfiguredIdentityLoginModulecallbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass| Constructor and Description |
|---|
CallerIdentityLoginModule()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
commit()
Method to commit the authentication process (phase 2).
|
protected Principal |
getIdentity()
Overriden by subclasses to return the Principal that corresponds to
the user primary identity.
|
protected Group[] |
getRoleSets()
Overriden by subclasses to return the Groups that correspond to the
to the role sets assigned to the user.
|
void |
initialize(Subject subject,
CallbackHandler handler,
Map<String,?> sharedState,
Map<String,?> options)
The initialize method sets up some default connection information for
basic connections.
|
boolean |
login()
Performs the login association between the caller and the resource for a
1 to 1 mapping.
|
logout, removeCredentialsabort, addValidOptions, checkOptions, createGroup, createIdentity, getCallerPrincipalGroup, getUnauthenticatedIdentity, getUseFirstPasspublic void initialize(Subject subject, CallbackHandler handler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModuleinitialize in class AbstractServerLoginModulesubject - handler - sharedState - options - public boolean login()
throws LoginException
login in interface LoginModulelogin in class AbstractServerLoginModuleLoginExceptionpublic boolean commit()
throws LoginException
AbstractServerLoginModulecommit in interface LoginModulecommit in class AbstractServerLoginModuleLoginExceptionSubject;,
Group;protected Principal getIdentity()
AbstractServerLoginModulegetIdentity in class AbstractServerLoginModuleprotected Group[] getRoleSets() throws LoginException
AbstractServerLoginModulegetRoleSets in class AbstractServerLoginModuleLoginExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.