Class DefaultSoapOpenIdConnectTokenAuthnMethodsReferencesMapper
- java.lang.Object
-
- org.forgerock.openam.sts.soap.token.provider.oidc.DefaultSoapOpenIdConnectTokenAuthnMethodsReferencesMapper
-
- All Implemented Interfaces:
SoapOpenIdConnectTokenAuthnMethodsReferencesMapper
public class DefaultSoapOpenIdConnectTokenAuthnMethodsReferencesMapper extends Object implements SoapOpenIdConnectTokenAuthnMethodsReferencesMapper
-
-
Constructor Summary
Constructors Constructor Description DefaultSoapOpenIdConnectTokenAuthnMethodsReferencesMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getAuthnMethodsReferences(List<org.apache.wss4j.dom.handler.WSHandlerResult> securityPolicyBindingTraversalYield)Returns the SAML2 AuthnContext class reference corresponding to the SupportingToken specified in the SecurityPolicy bindings protecting a soap-sts instance.Set<String>getAuthnMethodsReferencesForDelegatedToken(List<org.apache.wss4j.dom.handler.WSHandlerResult> securityPolicyBindingTraversalYield, org.apache.cxf.sts.request.ReceivedToken delegatedToken)Returns the SAML2 AuthnContext class reference for delegated tokens (specified as part of the ActAs/OnBehalfOf element in the RequestSecurityToken).
-
-
-
Method Detail
-
getAuthnMethodsReferences
public Set<String> getAuthnMethodsReferences(List<org.apache.wss4j.dom.handler.WSHandlerResult> securityPolicyBindingTraversalYield)
Description copied from interface:SoapOpenIdConnectTokenAuthnMethodsReferencesMapperReturns the SAML2 AuthnContext class reference corresponding to the SupportingToken specified in the SecurityPolicy bindings protecting a soap-sts instance.- Specified by:
getAuthnMethodsReferencesin interfaceSoapOpenIdConnectTokenAuthnMethodsReferencesMapper- Parameters:
securityPolicyBindingTraversalYield- The yield of SecurityPolicy binding verification, as generated by apache wss4j. See the DefaultSaml2XmlTokenAuthnContextMapper for details on how to parse the classes corresponding to this processing.- Returns:
- A valid AuthnContext value, as defined here: http://docs.oasis-open.org/security/saml/v2.0/saml-authn-context-2.0-os.pdf
-
getAuthnMethodsReferencesForDelegatedToken
public Set<String> getAuthnMethodsReferencesForDelegatedToken(List<org.apache.wss4j.dom.handler.WSHandlerResult> securityPolicyBindingTraversalYield, org.apache.cxf.sts.request.ReceivedToken delegatedToken)
Description copied from interface:SoapOpenIdConnectTokenAuthnMethodsReferencesMapperReturns the SAML2 AuthnContext class reference for delegated tokens (specified as part of the ActAs/OnBehalfOf element in the RequestSecurityToken). TheList<WSHandlerResult>which is the yield of the SecurityPolicy binding traversal, is only provided as additional context, as the manner in which the delegated token was secured may well have bearing on the type of AuthnContext class ref chosen, though it is not examined for the default implementation.- Specified by:
getAuthnMethodsReferencesForDelegatedTokenin interfaceSoapOpenIdConnectTokenAuthnMethodsReferencesMapper- Parameters:
securityPolicyBindingTraversalYield- The yield of SecurityPolicy binding verification, as generated by apache wss4j. See the DefaultSaml2XmlTokenAuthnContextMapper for details on how to parse the classes corresponding to this processing.delegatedToken- The token provided as part of the ActAs/OnBehalfOf element specified in the RequestSecurityToken.- Returns:
- A valid AuthnContext value, as defined here: http://docs.oasis-open.org/security/saml/v2.0/saml-authn-context-2.0-os.pdf
-
-