IRISLIB database
JWKS Class Reference
Inheritance diagram for JWKS:
Collaboration diagram for JWKS:

Static Public Member Functions

_.Library.Status AddEC (_.Library.String Alg, _.Library.String LocalPrivate, _.Library.String LocalPublic)
 This algorithm adds a new EC private and public key pair to JSON Web Key Sets (JWKS). More...
 
_.Library.Status AddOct (_.Library.String Alg, _.Library.String ClientSecret, _.Library.String RemotePublic, _.Library.String EncAlg)
 This method adds a new shared symmetric key to a JSON Web Key Set (JWKS). More...
 
_.Library.Status AddRSA (_.Library.String Alg, _.Library.String LocalPrivate, _.Library.String LocalPublic)
 This algorithm adds a new RSA private and public key pair to JSON Web Key Sets (JWKS). More...
 
_.Library.Status AddX509 (_.Library.String Alg, _.SYS.X509Credentials X509, _.Library.String LocalPrivate, _.Library.String Public)
 This method adds the RSA keys contained in a SYS.X509Credentials object to JSON Web Key Sets (JWKS). More...
 

Additional Inherited Members

- Public Member Functions inherited from RegisteredObject
_.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...
 
- Static Public Attributes inherited from RegisteredObject
 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...
 

Member Function Documentation

◆ AddEC()

_.Library.Status AddEC ( _.Library.String  Alg,
_.Library.String  LocalPrivate,
_.Library.String  LocalPublic 
)
static

This algorithm adds a new EC private and public key pair to JSON Web Key Sets (JWKS).



Input parameter:

Alg - The algorithm with which the keys are intended for use.
Supported options for signature:
"ES256", ECDSA using P-256 and SHA-256
"ES384", ECDSA using P-384 and SHA-384
"ES512", ECDSA using P-521 and SHA-512

Output parameters:

LocalPrivate - The Local Private JWKS to which the EC private key will be added. If it does not already exist it will be created.

Local Public - The Local Public JWKS to which the EC public key will be added. If it does not already exist it will be created.
This method is deprecated. Use the <class>Net.JSON.JWK</class> and <class>Net.JSON.JWKS</class> classes to manipulate JWK and JWKS definitions.

◆ AddOct()

_.Library.Status AddOct ( _.Library.String  Alg,
_.Library.String  ClientSecret,
_.Library.String  RemotePublic,
_.Library.String  EncAlg 
)
static

This method adds a new shared symmetric key to a JSON Web Key Set (JWKS).



Alg - The algorithm for which the key is intended for use.
Supported options for signature:
"HS256", HMAC with SHA-256
"HS384", HMAC with SHA-384
"HS512", HMAC with SHA-512
Supported options for key management:
"A128KW", AES Key Wrap with 128-bit key
"A192KW", AES Key Wrap with 192-bit key
"A256KW", AES Key Wrap with 256-bit key
"dir", direct encryption with a shared symmetric key

ClientSecret - Secret shared between a client and a server. This must have sufficient entropy to support the specified algorithm.

Output Parameter:

RemotePublic - The Remote Public JWKS to which the shared symmetric key will be added. If it does not already exist it will be created.
This method is deprecated. Use the <class>Net.JSON.JWK</class> and <class>Net.JSON.JWKS</class> classes to manipulate JWK and JWKS definitions.

◆ AddRSA()

_.Library.Status AddRSA ( _.Library.String  Alg,
_.Library.String  LocalPrivate,
_.Library.String  LocalPublic 
)
static

This algorithm adds a new RSA private and public key pair to JSON Web Key Sets (JWKS).



Input parameter:

Alg - The algorithm with which the keys are intended for use.
Supported options for signature:
"RS256", RSASSA-PKCS1-V1_5 using SHA-256
"RS384", RSASSA-PKCS1-V1_5 using SHA-384
"RS512", RSASSA-PKCS1-V1_5 using SHA-512
Supported options for key management:
"RSA1_5", Encryption with RSAES-PKCS1-V1_5
"RSA-OAEP", Encryption with RSAES-OAEP


Output parameters:

LocalPrivate - The Local Private JWKS to which the RSA private key will be added. If it does not already exist it will be created.

Local Public - The Local Public JWKS to which the RSA public key will be added. If it does not already exist it will be created.
This method is deprecated. Use the <class>Net.JSON.JWK</class> and <class>Net.JSON.JWKS</class> classes to manipulate JWK and JWKS definitions.

◆ AddX509()

_.Library.Status AddX509 ( _.Library.String  Alg,
_.SYS.X509Credentials  X509,
_.Library.String  LocalPrivate,
_.Library.String  Public 
)
static

This method adds the RSA keys contained in a SYS.X509Credentials object to JSON Web Key Sets (JWKS).



Input parameters:

Alg - The algorithm with which the keys are intended for use.
Supported options for signature:
"RS256", RSASSA-PKCS1-V1_5 using SHA-256
"RS384", RSASSA-PKCS1-V1_5 using SHA-384
"RS512", RSASSA-PKCS1-V1_5 using SHA-512
Supported options for key encryption:
"RSA1_5", Encryption with RSAES-PKCS1-V1_5
"RSA-OAEP", Encryption with RSAES-OAEP


Output parameters:

If the SYS.X509Credentials object PrivateKey property is set:

LocalPrivate - The Local Private JWKS to which the RSA private key will be added. If it does not already exist it will be created.

Public - The Local Public JWKS to which the RSA public key will be added. If it does not already exist it will be created.

If the SYS.X509Credentials object PrivateKey property is null:

Public - The Remote Public JWKS to which the RSA public key will be added. If it does not already exist it will be created.
This method is deprecated. Use the <class>Net.JSON.JWK</class> and <class>Net.JSON.JWKS</class> classes to manipulate JWK and JWKS definitions.