public class CallerIdentityLoginModule extends AbstractPasswordCredentialLoginModule
org.jboss.security.SimplePrincipal.
ConfiguredIdentityLoginModule
callbackHandler, 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, removeCredentials
abort, addValidOptions, checkOptions, createGroup, createIdentity, getCallerPrincipalGroup, getUnauthenticatedIdentity, getUseFirstPass
public void initialize(Subject subject, CallbackHandler handler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
initialize
in class AbstractServerLoginModule
subject
- handler
- sharedState
- options
- public boolean login() throws LoginException
login
in interface LoginModule
login
in class AbstractServerLoginModule
LoginException
public boolean commit() throws LoginException
AbstractServerLoginModule
commit
in interface LoginModule
commit
in class AbstractServerLoginModule
LoginException
Subject;
,
Group;
protected Principal getIdentity()
AbstractServerLoginModule
getIdentity
in class AbstractServerLoginModule
protected Group[] getRoleSets() throws LoginException
AbstractServerLoginModule
getRoleSets
in class AbstractServerLoginModule
LoginException
Copyright © 2016 JBoss by Red Hat. All rights reserved.