This class provides methods to sign and validate JSON Web Signatures, as defined in RFC 7515. More...
Static Public Member Functions | |
_.Library.Status | Sign (_.Library.DynamicObject protectedHeader, _.Library.DynamicObject unprotectedHeader, _.Library.String payload, _.Library.String serialization, _.Library.String JWKS, _.Library.String JWS) |
This method signs a header and payload to make a JWS. More... | |
_.Library.Boolean | Validate (_.Library.String JWS, _.Library.String JWKS, _.Library.Boolean acceptUnsecured, _.Library.DynamicArray validations) |
This method validates a JWS. More... | |
Static Private Member Functions | |
_.Library.Status | __CreateSignature (_.Library.DynamicObject algInfo, _.Library.DynamicObject JWK, _.Library.String signingInput, _.Library.String signature) |
This class provides methods to sign and validate JSON Web Signatures, as defined in RFC 7515. More... | |
_.Library.Status | __ECSigASN1toJWA (_.Library.String ASN1Sig, _.Library.Integer curveSize, _.Library.String JWASig) |
This private helper method converts the given ASN.1-format signature output by the kernel code into the JWA-format signature. More... | |
_.Library.Status | __ECSigJWAtoASN1 (_.Library.String JWASig, _.Library.Integer curveSize, _.Library.String ASN1Sig) |
This private helper method converts the given JWA-format signature into the ASN.1-format signature required by the kernel code. | |
_.Library.Integer | __ExtractAllSignatures (_.Library.DynamicObject JWSObj, signatureArray) |
This private helper method retrieves all of the signatures and protected and unprotected headers. More... | |
_.Library.Integer | __ExtractFlattenedFormat (_.Library.DynamicObject JWSObj, signatureArray) |
This private helper method retrieves the signature and protected and unprotected header from a. More... | |
_.Library.Integer | __ExtractGeneralFormat (_.Library.DynamicObject JWSObj, signatureArray) |
This private helper method retrieves all of the signatures and protected and unprotected headers from a. More... | |
_.Library.Status | __SignCompact (_.Library.DynamicObject header, _.Library.String payload, _.Library.String JWKS, _.Library.String JWS) |
This private method signs and creates a compact serialized JWS. More... | |
_.Library.Status | __SignJSON (_.Library.DynamicObject protectedHeader, _.Library.DynamicObject unprotectedHeader, _.Library.String payload, _.Library.String JWKS, _.Library.String JWS) |
This private method signs and creates a JSON serialized JWS with flattened syntax. More... | |
_.Library.Boolean | __ValidateCompact (_.Library.String JWS, _.Library.String JWKS, _.Library.Boolean acceptUnsecured, _.Library.DynamicArray validations) |
This private method validates a compact serialized JWS and returns an object containing information on the validation status of the. More... | |
_.Library.Boolean | __ValidateJSON (_.Library.String JWS, _.Library.String JWKS, _.Library.Boolean acceptUnsecured, _.Library.DynamicArray validations) |
This private method validates a JSON serialized JWS and returns an object containing information on the validation status of each. More... | |
_.Library.Status | __VerifySignature (_.Library.DynamicObject algInfo, _.Library.DynamicObject JWK, _.Library.String signingInput, _.Library.String signature, _.Library.Boolean acceptUnsecured) |
This private helper method verifies the given JWS signature using the provided algorithm information and JSON Web Key. | |
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 sign and validate JSON Web Signatures, as defined in RFC 7515.
|
staticprivate |
|
staticprivate |
This private helper method converts the given ASN.1-format signature output by the kernel code into the JWA-format signature.
required by the JWS specs.
|
staticprivate |
|
staticprivate |
This private helper method retrieves the signature and protected and unprotected header from a.
JSON serialized JWS that uses flattened syntax. In order to ensure compatibility with the general syntax of JSON serialized JWSs, this method populates a two-dimensional array to store the signature alongside the protected and unprotected header. It then returns the number of signatures found (which will always either be 0 or 1).
|
staticprivate |
This private helper method retrieves all of the signatures and protected and unprotected headers from a.
JSON serialized JWS that uses general syntax. It populates a two-dimensional array to store each signature alongside the corresponding protected and unprotected header and then returns the number of signatures found.
|
static |
This method signs a header and payload to make a JWS.
Input parameters:
Output parameters:
Return value:
Notes:
|
staticprivate |
|
staticprivate |
|
static |
This method validates a JWS.
Input parameters:
Output parameters:
|
staticprivate |
This private method validates a compact serialized JWS and returns an object containing information on the validation status of the.
signature in the JWS. It is a helper method for Validate() above and should never be called on its own. See Validate() for information on the inputs and outputs.
|
staticprivate |
This private method validates a JSON serialized JWS and returns an object containing information on the validation status of each.
signature in the JWS. It is a helper method for Validate() above and should never be called on its own. See Validate() for information on the inputs and outputs.