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