Package com.okta.sdk.resource.model
Class ECKeyJWK
java.lang.Object
com.okta.sdk.resource.model.ECKeyJWK
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]",
comments="Generator version: 7.15.0")
public class ECKeyJWK
extends Object
implements Serializable
Elliptic curve key in JSON Web Key (JWK) format. It's used during enrollment to encrypt fulfillment requests to
Yubico, or during activation to verify Yubico's JWS (JSON Web Signature) objects in fulfillment responses. The
currently agreed protocol uses P-384.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe elliptic curve protocolstatic enumThe type of public keystatic enumThe intended use for the key. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncrv(ECKeyJWK.CrvEnum crv) booleangetCrv()The elliptic curve protocolgetKid()The unique identifier of the keygetKty()The type of public keygetUse()The intended use for the key.getX()The public x coordinate for the elliptic curve pointgetY()The public y coordinate for the elliptic curve pointinthashCode()kty(ECKeyJWK.KtyEnum kty) voidsetCrv(ECKeyJWK.CrvEnum crv) voidvoidsetKty(ECKeyJWK.KtyEnum kty) voidsetUse(ECKeyJWK.UseEnum use) voidvoidtoString()use(ECKeyJWK.UseEnum use)
-
Field Details
-
JSON_PROPERTY_CRV
- See Also:
-
JSON_PROPERTY_KID
- See Also:
-
JSON_PROPERTY_KTY
- See Also:
-
JSON_PROPERTY_USE
- See Also:
-
JSON_PROPERTY_X
- See Also:
-
JSON_PROPERTY_Y
- See Also:
-
-
Constructor Details
-
ECKeyJWK
public ECKeyJWK()
-
-
Method Details
-
crv
-
getCrv
The elliptic curve protocol- Returns:
- crv
-
setCrv
-
kid
-
getKid
The unique identifier of the key- Returns:
- kid
-
setKid
-
kty
-
getKty
The type of public key- Returns:
- kty
-
setKty
-
use
-
getUse
The intended use for the key. This value is either `enc` (encryption) during enrollment, when Okta uses the ECKeyJWK to encrypt requests to Yubico. Or it's `sig` (signature) during activation, when Okta uses the ECKeyJWK to verify the responses from Yubico.- Returns:
- use
-
setUse
-
x
-
getX
The public x coordinate for the elliptic curve point- Returns:
- x
-
setX
-
y
-
getY
The public y coordinate for the elliptic curve point- Returns:
- y
-
setY
-
equals
-
hashCode
public int hashCode() -
toString
-