This class provides methods to encrypt and decrypt JSON Web Encryption objects, as defined in RFC 7516. More...
Static Public Member Functions | |
_.Library.Status | Decrypt (_.Library.String JWE, _.Library.String JWKS, _.Library.String plaintext, _.Library.DynamicArray decryptions) |
This method decrypts a JWE. More... | |
_.Library.Status | Encrypt (_.Library.DynamicObject protectedHeader, _.Library.DynamicObject sharedUnprotectedHeader, _.Library.DynamicObject perRecipientUnprotectedHeader, _.Library.String plaintext, _.Library.String AAD, _.Library.String serialization, _.Library.String JWKS, _.Library.String JWE) |
This method encrypts a message and makes a JWE. More... | |
Static Private Member Functions | |
_.Library.Status | __CreateCEK (_.Library.DynamicObject algInfo, _.Library.DynamicObject encInfo, _.Library.DynamicObject JWK, _.Library.String CEK) |
This class provides methods to encrypt and decrypt JSON Web Encryption objects, as defined in RFC 7516. More... | |
_.Library.Status | __CreateCiphertext (_.Library.DynamicObject encInfo, _.Library.String plaintext, _.Library.String CEK, _.Library.String IV, _.Library.String AAD, _.Library.String ciphertext, _.Library.String authTag) |
This private helper method is what actually encrypts the plaintext using the provided encryption algorithm information and inputs. More... | |
_.Library.Status | __DecryptCEK (_.Library.DynamicObject algInfo, _.Library.DynamicObject JWK, _.Library.String encryptedCEK, _.Library.String CEK) |
This private helper method decrypts the Content Encryption Key based on the given algorithm information and JWK. | |
_.Library.Status | __DecryptCiphertext (_.Library.DynamicObject encInfo, _.Library.String ciphertext, _.Library.String authTag, _.Library.String CEK, _.Library.String IV, _.Library.String AAD, _.Library.String plaintext) |
This private helper method is what actually decrypts the ciphertext using the provided encryption algorithm information and inputs. More... | |
_.Library.Status | __DecryptCompact (_.Library.String JWE, _.Library.String JWKS, _.Library.String plaintext, _.Library.DynamicArray decryptions) |
This private method decrypts a compact serialized JWE and returns an object containing information on the decryption status of the. More... | |
_.Library.Status | __DecryptJSON (_.Library.String JWE, _.Library.String JWKS, _.Library.String plaintext, _.Library.DynamicArray decryptions) |
This private method decrypts a JSON serialized JWE and returns an object containing information on the decryption status of each. More... | |
_.Library.Status | __EncryptCEK (_.Library.DynamicObject algInfo, _.Library.DynamicObject JWK, _.Library.String CEK, _.Library.String encryptedCEK) |
This private helper method encrypts the Content Encryption Key based on the given algorithm information and JWK. | |
_.Library.Status | __EncryptCompact (_.Library.DynamicObject header, _.Library.String plaintext, _.Library.String JWKS, _.Library.String JWE) |
This private method encrypts and creates a compact serialized JWE. More... | |
_.Library.Status | __EncryptJSON (_.Library.DynamicObject protectedHeader, _.Library.DynamicObject sharedUnprotectedHeader, _.Library.DynamicObject perRecipientUnprotectedHeader, _.Library.String plaintext, _.Library.String JWEAAD, _.Library.String JWKS, _.Library.String JWE) |
This private method encrypts and creates a JSON serialized JWE with flattened syntax. More... | |
_.Library.Integer | __ExtractAllRecipients (_.Library.DynamicObject JWEObj, recipientsArray) |
This private helper method retrieves all of the encrypted keys and per-recipient unprotected headers. More... | |
_.Library.Integer | __ExtractFlattenedFormat (_.Library.DynamicObject JWEObj, recipientsArray) |
This private helper method retrieves the encrypted key and per-recipient unprotected header from a. More... | |
_.Library.Integer | __ExtractGeneralFormat (_.Library.DynamicObject JWEObj, recipientsArray) |
This private helper method retrieves all of the encrypted keys and per-recipient unprotected headers from a. More... | |
Additional Inherited Members | |
![]() | |
_.Library.Status | OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount) |
This callback method is invoked when the current object is added to the SaveSet,. More... | |
_.Library.Status | OnClose () |
This callback method is invoked by the <METHOD>Close</METHOD> method to. More... | |
_.Library.Status | OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned) |
This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More... | |
_.Library.Status | OnNew () |
This callback method is invoked by the <METHOD>New</METHOD> method to. More... | |
_.Library.Status | OnValidateObject () |
This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More... | |
![]() | |
CAPTION = None | |
Optional name used by the Form Wizard for a class when generating forms. More... | |
JAVATYPE = None | |
The Java type to be used when exported. | |
PROPERTYVALIDATION = None | |
This parameter controls the default validation behavior for the object. More... | |
This class provides methods to encrypt and decrypt JSON Web Encryption objects, as defined in RFC 7516.
|
staticprivate |
|
staticprivate |
This private helper method is what actually encrypts the plaintext using the provided encryption algorithm information and inputs.
It outputs both the ciphertext and an authentication tag.
|
static |
This method decrypts a JWE.
Input parameters:
Output parameters:
Return value:
Notes:
|
staticprivate |
This private helper method is what actually decrypts the ciphertext using the provided encryption algorithm information and inputs.
Before decrypting the ciphertext, it first verifies the authentication tag.
|
staticprivate |
|
staticprivate |
|
static |
This method encrypts a message and makes a JWE.
Input parameters:
Output parameters:
Return value:
Notes:
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
This private helper method retrieves the encrypted key and per-recipient unprotected header from a.
JSON serialized JWE that uses flattened syntax. In order to ensure compatibility with the general syntax of JSON serialized JWEs, this method populates a two-dimensional array to store the encrypted key alongside the per-recipient unprotected header. It then returns the number of recipients found (which will always either be 0 or 1).
|
staticprivate |
This private helper method retrieves all of the encrypted keys and per-recipient unprotected headers from a.
JSON serialized JWE that uses general syntax. It populates a two-dimensional array to store each encrypted key alongside the corresponding per-recipient unprotected header and then returns the number of recipients found.