Skip to main content

%OAuth2.JWK

Class %OAuth2.JWK Extends %RegisteredObject [ Deprecated, System = 4 ]

Methods

RSAASN1toJWK

ClassMethod RSAASN1toJWK(ASN1 As %String, Password As %String = "", Output JWK As %DynamicObject) As %Status [ Deprecated ]

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 This method is deprecated.

RSAJWKtoASN1

ClassMethod RSAJWKtoASN1(JWK As %DynamicObject, Output ASN1 As %String) As %Status [ Deprecated ]

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. This method is deprecated.

ECASN1toJWK

ClassMethod ECASN1toJWK(ASN1 As %String, Password As %String = "", Output JWK As %DynamicObject) As %Status [ Deprecated ]

This method converts an EC 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 EC key.

Password - Private key password (optional).

Output parameter:

JWK - JWK representation of private or public EC Key This method is deprecated.

ECJWKtoASN1

ClassMethod ECJWKtoASN1(JWK As %DynamicObject, Output ASN1 As %String) As %Status [ Deprecated ]

This method converts an EC key in JSON Web Key (JWK) format to PEM-encoded DER ASN.1 format.

Input parameter:

JWK - JWK representation of private or public EC Key

Output parameter:

ASN1 - PEM-encoded DER ASN.1 representation of private or public EC key. This method is deprecated.