Search in sources :

Example 1 with EncryptedJwt

use of org.forgerock.json.jose.jwe.EncryptedJwt in project OpenAM by OpenRock.

the class EncryptedJwtDeviceSerialisation method stringToDeviceProfile.

@Override
public JsonValue stringToDeviceProfile(final String value) {
    final EncryptedJwt jwt = new JwtReconstruction().reconstructJwt(value, EncryptedJwt.class);
    jwt.decrypt(keyPair.getPrivate());
    return claimsToJson(jwt.getClaimsSet());
}
Also used : JwtReconstruction(org.forgerock.json.jose.common.JwtReconstruction) EncryptedJwt(org.forgerock.json.jose.jwe.EncryptedJwt)

Aggregations

JwtReconstruction (org.forgerock.json.jose.common.JwtReconstruction)1 EncryptedJwt (org.forgerock.json.jose.jwe.EncryptedJwt)1