org.picketlink.trust.jbossws.jaas
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 LoginModule
commit
in class org.jboss.security.auth.spi.AbstractServerLoginModule
LoginException
protected Principal getIdentity()
Group
PrincipalgetIdentity
in class org.jboss.security.auth.spi.AbstractServerLoginModule
protected Group[] getRoleSets() throws LoginException
getRoleSets
in class org.jboss.security.auth.spi.AbstractServerLoginModule
LoginException
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.