Apache CXF API

org.apache.cxf.sts.token.validator
Interface SAMLRoleParser

All Known Implementing Classes:
DefaultSAMLRoleParser

public interface SAMLRoleParser

This interface defines a way to extract roles from a SAML Assertion


Method Summary
 Set<Principal> parseRolesFromAssertion(Principal principal, Subject subject, org.apache.wss4j.common.saml.SamlAssertionWrapper assertion)
          Return the set of User/Principal roles from the Assertion.
 

Method Detail

parseRolesFromAssertion

Set<Principal> parseRolesFromAssertion(Principal principal,
                                       Subject subject,
                                       org.apache.wss4j.common.saml.SamlAssertionWrapper assertion)
Return the set of User/Principal roles from the Assertion.

Parameters:
principal - the Principal associated with the Assertion
subject - the JAAS Subject associated with a successful validation of the Assertion
assertion - The Assertion object
Returns:
the set of User/Principal roles from the Assertion.

Apache CXF API

Apache CXF