Search in sources :

Example 1 with SAML2TokenCreationState

use of org.forgerock.openam.sts.user.invocation.SAML2TokenCreationState in project OpenAM by OpenRock.

the class TokenRequestMarshallerImpl method getProofTokenState.

private ProofTokenState getProofTokenState(JsonValue token) throws TokenMarshalException {
    final SAML2TokenCreationState tokenState = SAML2TokenCreationState.fromJson(token);
    final ProofTokenState proofTokenState = tokenState.getProofTokenState();
    if (proofTokenState == null) {
        throw new TokenMarshalException(ResourceException.BAD_REQUEST, "No ProofTokenState specified in the" + " SAML2TokenCreationState. The JsonValue: " + token);
    } else {
        return proofTokenState;
    }
}
Also used : SAML2TokenCreationState(org.forgerock.openam.sts.user.invocation.SAML2TokenCreationState) TokenMarshalException(org.forgerock.openam.sts.TokenMarshalException) ProofTokenState(org.forgerock.openam.sts.user.invocation.ProofTokenState)

Aggregations

TokenMarshalException (org.forgerock.openam.sts.TokenMarshalException)1 ProofTokenState (org.forgerock.openam.sts.user.invocation.ProofTokenState)1 SAML2TokenCreationState (org.forgerock.openam.sts.user.invocation.SAML2TokenCreationState)1