|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.sts.token.validator.DefaultSAMLRoleParser
public class DefaultSAMLRoleParser
A default implementation to extract roles from a SAML Assertion
Field Summary | |
---|---|
static String |
SAML_ROLE_ATTRIBUTENAME_DEFAULT
This configuration tag specifies the default attribute name where the roles are present The default is "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/role". |
Constructor Summary | |
---|---|
DefaultSAMLRoleParser()
|
Method Summary | |
---|---|
String |
getRoleAttributeName()
|
String |
getRoleClassifier()
|
String |
getRoleClassifierType()
|
boolean |
isUseJaasSubject()
|
Set<Principal> |
parseRolesFromAssertion(Principal principal,
Subject subject,
org.apache.wss4j.common.saml.SamlAssertionWrapper assertion)
Return the set of User/Principal roles from the Assertion. |
void |
setRoleAttributeName(String roleAttributeName)
Set the attribute URI of the SAML AttributeStatement where the role information is stored. |
void |
setRoleClassifier(String roleClassifier)
Set the Subject Role Classifier to use. |
void |
setRoleClassifierType(String roleClassifierType)
Set the Subject Role Classifier Type to use. |
void |
setUseJaasSubject(boolean useJaasSubject)
Whether to get roles from the JAAS Subject (if not null) returned from SAML Assertion Validation or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SAML_ROLE_ATTRIBUTENAME_DEFAULT
Constructor Detail |
---|
public DefaultSAMLRoleParser()
Method Detail |
---|
public Set<Principal> parseRolesFromAssertion(Principal principal, Subject subject, org.apache.wss4j.common.saml.SamlAssertionWrapper assertion)
parseRolesFromAssertion
in interface SAMLRoleParser
principal
- the Principal associated with the Assertionsubject
- the JAAS Subject associated with a successful validation of the Assertionassertion
- The Assertion object
public boolean isUseJaasSubject()
public void setUseJaasSubject(boolean useJaasSubject)
useJaasSubject
- whether to get roles from the JAAS Subject or notpublic String getRoleClassifier()
public void setRoleClassifier(String roleClassifier)
roleClassifier
- the Subject Role Classifier to usepublic String getRoleClassifierType()
public void setRoleClassifierType(String roleClassifierType)
roleClassifierType
- the Subject Role Classifier Type to usepublic String getRoleAttributeName()
public void setRoleAttributeName(String roleAttributeName)
roleAttributeName
- the Attribute URI where role information is stored
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |