Home > Class Reference > %SYS namespace > %OAuth2.JWK

%OAuth2.JWK

class %OAuth2.JWK extends %Library.RegisteredObject

Methods

classmethod RSAASN1toJWK(ASN1 As %String, Password As %String = "", Output JWK As %DynamicObject) as %Status [ Language = objectscript ]
This method converts an RSA key in PEM-encoded DER ASN.1 format to JSON Web Key (JWK) format.

Input parameters:

ASN1 - PEM-encoded DER ASN.1 representation of private or public RSA key.

Password - Private key password (optional).

Output parameter:

JWK - JWK representation of private or public RSA Key
classmethod RSAJWKtoASN1(JWK As %DynamicObject, Output ASN1 As %String) as %Status [ Language = objectscript ]
This method converts an RSA key in JSON Web Key (JWK) format to PEM-encoded DER ASN.1 format.

Input parameter:

JWK - JWK representation of private or public RSA Key

Output parameter:

ASN1 - PEM-encoded DER ASN.1 representation of private or public RSA key.

Inherited Methods

%AddToSaveSet() %DispatchSetModified() %NormalizeObject()
%ClassIsLatestVersion() %DispatchSetMultidimProperty() %ObjectModified()
%ClassName() %DispatchSetProperty() %OriginalNamespace()
%ConstructClone() %Extends() %PackageName()
%DispatchClassMethod() %GetParameter() %RemoveFromSaveSet()
%DispatchGetModified() %IsA() %SerializeObject()
%DispatchGetProperty() %IsModified() %SetModified()
%DispatchMethod() %New() %ValidateObject()