public class SAMLRoleLoginModule
extends org.jboss.security.auth.spi.AbstractServerLoginModule
A login module that extracts the roles from the SAML assertion that has been set in the Subject. This module is always a
follow up to other modules such as JBWSTokenIssuingLoginModule
This login module checks the Subject for a SamlCredential in the public credentials section. From the
credential, we extract the assertion. The assertion should contain the roles.
| Constructor and Description |
|---|
SAMLRoleLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
commit() |
protected Principal |
getIdentity()
We first check the shared state for the principal.
|
protected Group[] |
getRoleSets() |
public boolean commit()
throws LoginException
commit in interface LoginModulecommit in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionprotected Principal getIdentity()
Group PrincipalgetIdentity in class org.jboss.security.auth.spi.AbstractServerLoginModuleprotected Group[] getRoleSets() throws LoginException
getRoleSets in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionCopyright © 2013. All Rights Reserved.