public class BaseCertLoginModule extends AbstractServerLoginModule
callbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass| Constructor and Description |
|---|
BaseCertLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
commit()
Override to add the X509Certificate to the public credentials
|
protected Object[] |
getAliasAndCert() |
protected Object |
getCredentials() |
protected Principal |
getIdentity()
Overriden by subclasses to return the Principal that corresponds to
the user primary identity.
|
protected Group[] |
getRoleSets()
Subclasses need to override this to provide the roles for authorization
|
protected String |
getUsername() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Override the super version to pickup the following options after first
calling the super method.
|
boolean |
login()
Perform the authentication of the username and password.
|
protected boolean |
validateCredential(String alias,
X509Certificate cert) |
abort, addValidOptions, checkOptions, createGroup, createIdentity, getCallerPrincipalGroup, getUnauthenticatedIdentity, getUseFirstPass, logoutpublic void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModuleinitialize in class AbstractServerLoginModulesubject - 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 instancesoptions - the parameters passed to the login module.SecurityDomain,
X509CertificateVerifierpublic boolean login()
throws LoginException
login in interface LoginModulelogin in class AbstractServerLoginModuleLoginExceptionpublic boolean commit()
throws LoginException
commit in interface LoginModulecommit in class AbstractServerLoginModuleLoginExceptionSubject;,
Group;protected Group[] getRoleSets() throws LoginException
getRoleSets in class AbstractServerLoginModuleLoginExceptionprotected Principal getIdentity()
AbstractServerLoginModulegetIdentity in class AbstractServerLoginModuleprotected Object getCredentials()
protected String getUsername()
protected Object[] getAliasAndCert() throws LoginException
LoginExceptionprotected boolean validateCredential(String alias, X509Certificate cert)
Copyright © 2017 JBoss by Red Hat. All rights reserved.