public static class JsonWebKey.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JsonWebKey.Builder |
alg(String alg)
The algorithm intended for use with this key.
|
JsonWebKey |
build() |
JsonWebKey.Builder |
copy(JsonWebKey model) |
JsonWebKey.Builder |
e(String e)
The base64 url encoded exponent of the RSA public key represented by this key.
|
JsonWebKey.Builder |
keyOps(List<JsonWebKey.KeyOps> keyOps)
The operations for which this key is to be used.
|
JsonWebKey.Builder |
kid(String kid) |
JsonWebKey.Builder |
kty(JsonWebKey.Kty kty)
The key type.
|
JsonWebKey.Builder |
n(String n)
The base64 url encoded modulus of the RSA public key represented by this key.
|
JsonWebKey.Builder |
use(JsonWebKey.Use use)
The intended use of the public key.
|
public JsonWebKey.Builder kid(String kid)
public JsonWebKey.Builder kty(JsonWebKey.Kty kty)
The key type.
kty
- the value to setpublic JsonWebKey.Builder use(JsonWebKey.Use use)
The intended use of the public key.
use
- the value to setpublic JsonWebKey.Builder keyOps(List<JsonWebKey.KeyOps> keyOps)
The operations for which this key is to be used.
keyOps
- the value to setpublic JsonWebKey.Builder alg(String alg)
The algorithm intended for use with this key.
alg
- the value to setpublic JsonWebKey.Builder n(String n)
The base64 url encoded modulus of the RSA public key represented by this key.
n
- the value to setpublic JsonWebKey.Builder e(String e)
The base64 url encoded exponent of the RSA public key represented by this key.
e
- the value to setpublic JsonWebKey build()
public JsonWebKey.Builder copy(JsonWebKey model)
Copyright © 2016–2024. All rights reserved.