Package | Description |
---|---|
org.forgerock.json.jose.jwk |
Classes and interfaces for creating and manipulating JWKs.
|
Modifier and Type | Method and Description |
---|---|
static OkpJWK.Builder |
OkpJWK.builder()
Creates a new builder object for an OKP key.
|
OkpJWK.Builder |
OkpJWK.Builder.curve(SupportedEllipticCurve curve)
Sets the elliptic curve that this key uses.
|
OkpJWK.Builder |
OkpJWK.Builder.d(String d)
Sets the private key d-value of the key.
|
OkpJWK.Builder |
OkpJWK.Builder.keyPair(KeyPair keyPair)
Sets the public and private values from the given key pair, which must consist of an
OkpJWK.OctetECPublicKey and OkpJWK.OctetECPrivateKey . |
OkpJWK.Builder |
OkpJWK.Builder.privateKey(OkpJWK.OctetECPrivateKey privateKey)
Sets the private key d-value from the given private key.
|
OkpJWK.Builder |
OkpJWK.Builder.publicKey(ECPublicKey publicKey)
Sets the public x-coordinate from the given public key.
|
OkpJWK.Builder |
OkpJWK.Builder.publicKey(PublicKey publicKey)
Sets the public x-coordinate from the given public key.
|
OkpJWK.Builder |
OkpJWK.Builder.x(String x)
Sets the public key x-coordinate of the key.
|
OkpJWK.Builder |
OkpJWK.Builder.xecPrivateKey(PrivateKey xecPrivateKey)
Sets the private scalar value from the given XECPrivateKey (Java 11+).
|
OkpJWK.Builder |
OkpJWK.Builder.xecPublicKey(PublicKey xecPublicKey)
Sets the public x-coordinate from the given XECPublicKey (Java 11+).
|
Copyright 2010-2022 ForgeRock AS.