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 LoginModuleinitialize in class org.jboss.security.auth.spi.AbstractServerLoginModulepublic boolean login()
throws LoginException
login in interface LoginModulelogin in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionprotected void validateCredential(String username, org.jboss.iiop.csiv2.SASCurrent credential) throws LoginException
username - The usernamecredential - The SASCurrent.LoginExceptionprotected Principal getIdentity()
getIdentity in class org.jboss.security.auth.spi.AbstractServerLoginModuleprotected Group[] getRoleSets() throws LoginException
getRoleSets in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionprotected Principal getUnauthenticatedIdentity()
getUnauthenticatedIdentity in class org.jboss.security.auth.spi.AbstractServerLoginModuleprotected String getUsername()
protected void safeClose(InputStream fis)
Copyright © 2022 JBoss by Red Hat. All rights reserved.