Interface Saml2JsonTokenAuthnContextMapper
-
- All Known Implementing Classes:
Saml2JsonTokenAuthnContextMapperImpl
public interface Saml2JsonTokenAuthnContextMapperDefines 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.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTHN_CONTEXT_CLASS_REF_PASSWORD_PROTECTED_TRANSPORTstatic StringAUTHN_CONTEXT_CLASS_REF_PREVIOUS_SESSIONstatic StringAUTHN_CONTEXT_CLASS_REF_UNSPECIFIEDstatic StringAUTHN_CONTEXT_CLASS_REF_X509
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAuthnContext(TokenTypeId inputTokenType, org.forgerock.json.JsonValue inputToken)Returns the AuthnContext value corresponding to the TokenType inputToken.
-
-
-
Field Detail
-
AUTHN_CONTEXT_CLASS_REF_PASSWORD_PROTECTED_TRANSPORT
static final String AUTHN_CONTEXT_CLASS_REF_PASSWORD_PROTECTED_TRANSPORT
- See Also:
- Constant Field Values
-
AUTHN_CONTEXT_CLASS_REF_PREVIOUS_SESSION
static final String AUTHN_CONTEXT_CLASS_REF_PREVIOUS_SESSION
- See Also:
- Constant Field Values
-
AUTHN_CONTEXT_CLASS_REF_X509
static final String AUTHN_CONTEXT_CLASS_REF_X509
- See Also:
- Constant Field Values
-
AUTHN_CONTEXT_CLASS_REF_UNSPECIFIED
static final String AUTHN_CONTEXT_CLASS_REF_UNSPECIFIED
- See Also:
- Constant Field Values
-
-
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 transformationinputToken- 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
-
-