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;
}
}
Aggregations