public class CertRolesLoginModule extends BaseCertLoginModule
BaseCertLoginModule
callbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
Constructor and Description |
---|
CertRolesLoginModule() |
Modifier and Type | Method and Description |
---|---|
protected Group[] |
getRoleSets()
This method is pretty much straight from the UsersRolesLoginModule.
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Initialize this LoginModule.
|
boolean |
login()
Perform the authentication of the username and password.
|
commit, getAliasAndCert, getCredentials, getIdentity, getUsername, validateCredential
abort, addValidOptions, checkOptions, createGroup, createIdentity, getCallerPrincipalGroup, getUnauthenticatedIdentity, getUseFirstPass, logout
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
initialize
in class BaseCertLoginModule
options
- - the login module option map. Supported options include:
rolesProperties: The name of the properties resource containing user/roles
the default is "roles.properties".
roleGroupSeperator: The character used to seperate the role group name from
the username e.g., '.' in jduke.CallerPrincipal=... . The default = '.'.
defaultRolesProperties=string: The name of the properties resource containing
the username to roles mappings that will be used as the defaults
Properties passed to the usersProperties Properties. This defaults to
defaultRoles.properties.subject
- the Subject to update after a successful login.callbackHandler
- the CallbackHandler that will be used to obtain the
the user identity and credentials.sharedState
- a Map shared between all configured login module instancesSecurityDomain
,
X509CertificateVerifier
public boolean login() throws LoginException
BaseCertLoginModule
login
in interface LoginModule
login
in class BaseCertLoginModule
LoginException
protected Group[] getRoleSets() throws LoginException
getRoleSets
in class BaseCertLoginModule
LoginException
UsersRolesLoginModule.getRoleSets()
Copyright © 2017 JBoss by Red Hat. All rights reserved.