public class TrustedIdentityTokenLoginModule
extends org.jboss.security.auth.spi.AbstractServerLoginModule
#validateCredential(String, org.wildfly.iiop.openjdk.csiv2.idl.SASCurrent)
to
implement identity token validation logic.
WARNING: Installing this class as a login module without subclassing and implementing validation essentially
means that the server will trust any incoming CORBA invocation.Constructor and Description |
---|
TrustedIdentityTokenLoginModule() |
Modifier and Type | Method and Description |
---|---|
protected Principal |
getIdentity() |
protected Group[] |
getRoleSets() |
protected Principal |
getUnauthenticatedIdentity() |
protected String |
getUsername() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
protected void |
safeClose(InputStream fis) |
protected void |
validateCredential(String username,
org.jboss.iiop.csiv2.SASCurrent credential)
Validates the credential.
|
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
initialize
in class org.jboss.security.auth.spi.AbstractServerLoginModule
public boolean login() throws LoginException
login
in interface LoginModule
login
in class org.jboss.security.auth.spi.AbstractServerLoginModule
LoginException
protected void validateCredential(String username, org.jboss.iiop.csiv2.SASCurrent credential) throws LoginException
username
- The usernamecredential
- The SASCurrent.LoginException
protected Principal getIdentity()
getIdentity
in class org.jboss.security.auth.spi.AbstractServerLoginModule
protected Group[] getRoleSets() throws LoginException
getRoleSets
in class org.jboss.security.auth.spi.AbstractServerLoginModule
LoginException
protected Principal getUnauthenticatedIdentity()
getUnauthenticatedIdentity
in class org.jboss.security.auth.spi.AbstractServerLoginModule
protected String getUsername()
protected void safeClose(InputStream fis)
Copyright © 2017 JBoss by Red Hat. All rights reserved.