Package | Description |
---|---|
org.forgerock.json.jose.jwe |
Classes and interfaces for JWT encryption and JWEs.
|
org.forgerock.json.jose.jwe.handlers.encryption |
Encryption Handler classes for each possible encryption algorithm.
|
org.forgerock.json.jose.jws |
Classes and interfaces for JWT signing and JWS'.
|
Modifier and Type | Method and Description |
---|---|
JweHeader |
EncryptedJwt.getHeader() |
Modifier and Type | Method and Description |
---|---|
EncryptionHandler |
EncryptionManager.getEncryptionHandler(JweHeader header)
Gets the appropriate EncryptionHandler that can perform the required encryption algorithm, as described by the
JweAlgorithm and EncryptionMethod in the given JweHeader.
|
EncryptionHandler |
EncryptionManager.getEncryptionHandler(JweHeader header,
Key key)
Gets the appropriate EncryptionHandler that can perform the required encryption algorithm, as described by the
JweAlgorithm and EncryptionMethod in the given JweHeader.
|
Constructor and Description |
---|
EncryptedJwt(JweHeader header,
JwtClaimsSet payload,
Key publicKey)
Constructs a fresh, new EncryptedJwt from the given JweHeader and JwtClaimsSet.
|
EncryptedJwt(JweHeader header,
String encodedHeader,
byte[] encryptedContentEncryptionKey,
byte[] initialisationVector,
byte[] ciphertext,
byte[] authenticationTag)
Constructs a reconstructed EncryptedJwt from its constituent parts, the JweHeader, encrypted Content Encryption
Key (CEK), initialisation vector, ciphertext and additional authentication data.
|
SignedThenEncryptedJwt(JweHeader header,
SignedJwt payload,
Key publicKey)
Constructs a fresh signed-then-encrypted JWT with the given signed JWT payload, JWE headers and encryption key.
|
SignedThenEncryptedJwt(JweHeader header,
String encodedHeader,
byte[] encryptedContentEncryptionKey,
byte[] initialisationVector,
byte[] ciphertext,
byte[] authenticationTag)
Reconstructs a signed-then-encrypted JWT from components parts of the encrypted JWT string.
|
Modifier and Type | Method and Description |
---|---|
default Key |
EncryptionHandler.decryptContentEncryptionKey(Key key,
byte[] encryptedContentEncryptionKey,
JweHeader header)
Decrypts the Content Encryption Key (CEK) following the appropriate steps defined by the EncryptionHandler
JweAlgorithm.
|
Key |
ECDHEncryptionHandler.decryptContentEncryptionKey(Key key,
byte[] encryptedContentEncryptionKey,
JweHeader header) |
default byte[] |
EncryptionHandler.generateJWEEncryptedKey(Key key,
Key contentEncryptionKey,
JweHeader header)
Generates the Content Encryption Key (CEK) following the appropriate steps defined by the EncryptionHandler
JweAlgorithm.
|
byte[] |
ECDHEncryptionHandler.generateJWEEncryptedKey(Key key,
Key ephemeralKey,
JweHeader header) |
Modifier and Type | Method and Description |
---|---|
JweHeader |
EncryptedThenSignedJwt.getJweHeader()
Get the header of the encapsulated
EncryptedJwt . |
Copyright 2010-2022 ForgeRock AS.