Interface Saml2JsonTokenAuthnContextMapper

  • All Known Implementing Classes:
    Saml2JsonTokenAuthnContextMapperImpl

    public interface Saml2JsonTokenAuthnContextMapper
    Defines the functionality which maps a TokenType to a SAML2 AuthnContext value (see section 2.7.2.2 of http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf for details). This AuthnContext will be sent to the TokenGenerationService for inclusion in the AuthnStatement of the issued assertion. It specifies the manner in which the subject was authenticated. In the context of token transformation, the validated input token will determine the AuthnContext specified in the TokenGenerationService invocation. This interface defines the contract for this mapping. It also defines a set of standard values used by the default authn context mapper.
    • Method Detail

      • getAuthnContext

        String getAuthnContext​(TokenTypeId inputTokenType,
                               org.forgerock.json.JsonValue inputToken)
        Returns the AuthnContext value corresponding to the TokenType inputToken.
        Parameters:
        inputTokenType - The TokenType validated as part of the token transformation
        inputToken - The json representation of the validated token, as presented to the REST STS in the token transformation invocation. This state can be used by custom implementations of this interface to make more elaborate decisions regarding the returned AuthnContext class reference.
        Returns:
        A valid AuthnContext value, as defined here: http://docs.oasis-open.org/security/saml/v2.0/saml-authn-context-2.0-os.pdf