Package com.oracle.bmc.apigateway.model
Class JsonWebKey.Builder
- java.lang.Object
-
- com.oracle.bmc.apigateway.model.JsonWebKey.Builder
-
- Enclosing class:
- JsonWebKey
public static class JsonWebKey.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
kid
public JsonWebKey.Builder kid(String kid)
-
kty
public JsonWebKey.Builder kty(JsonWebKey.Kty kty)
The key type.- Parameters:
kty
- the value to set- Returns:
- this builder
-
use
public JsonWebKey.Builder use(JsonWebKey.Use use)
The intended use of the public key.- Parameters:
use
- the value to set- Returns:
- this builder
-
keyOps
public JsonWebKey.Builder keyOps(List<JsonWebKey.KeyOps> keyOps)
The operations for which this key is to be used.- Parameters:
keyOps
- the value to set- Returns:
- this builder
-
alg
public JsonWebKey.Builder alg(String alg)
The algorithm intended for use with this key.- Parameters:
alg
- the value to set- Returns:
- this builder
-
n
public JsonWebKey.Builder n(String n)
The base64 url encoded modulus of the RSA public key represented by this key.- Parameters:
n
- the value to set- Returns:
- this builder
-
e
public JsonWebKey.Builder e(String e)
The base64 url encoded exponent of the RSA public key represented by this key.- Parameters:
e
- the value to set- Returns:
- this builder
-
build
public JsonWebKey build()
-
copy
public JsonWebKey.Builder copy(JsonWebKey model)
-
-