@Generated(value="OracleSDKGenerator", comments="API Version: 20190501") public final class JsonWebKey extends StaticPublicKey
A JSON Web Key that represents the public key used for verifying the JWT signature.
Note: Objects should always be created or deserialized using the JsonWebKey.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the JsonWebKey.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
JsonWebKey.Builder |
static class |
JsonWebKey.KeyOps |
static class |
JsonWebKey.Kty
The key type.
|
static class |
JsonWebKey.Use
The intended use of the public key.
|
StaticPublicKey.Format
Constructor and Description |
---|
JsonWebKey(String kid,
JsonWebKey.Kty kty,
JsonWebKey.Use use,
List<JsonWebKey.KeyOps> keyOps,
String alg,
String n,
String e)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static JsonWebKey.Builder |
builder()
Create a new builder.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getAlg()
The algorithm intended for use with this key.
|
String |
getE()
The base64 url encoded exponent of the RSA public key represented
by this key.
|
List<JsonWebKey.KeyOps> |
getKeyOps()
The operations for which this key is to be used.
|
JsonWebKey.Kty |
getKty()
The key type.
|
String |
getN()
The base64 url encoded modulus of the RSA public key represented
by this key.
|
JsonWebKey.Use |
getUse()
The intended use of the public key.
|
int |
hashCode() |
JsonWebKey.Builder |
toBuilder() |
String |
toString() |
getKid
@Deprecated public JsonWebKey(String kid, JsonWebKey.Kty kty, JsonWebKey.Use use, List<JsonWebKey.KeyOps> keyOps, String alg, String n, String e)
public static JsonWebKey.Builder builder()
Create a new builder.
public JsonWebKey.Builder toBuilder()
public JsonWebKey.Kty getKty()
The key type.
public JsonWebKey.Use getUse()
The intended use of the public key.
public List<JsonWebKey.KeyOps> getKeyOps()
The operations for which this key is to be used.
public String getAlg()
The algorithm intended for use with this key.
public String getN()
The base64 url encoded modulus of the RSA public key represented by this key.
public String getE()
The base64 url encoded exponent of the RSA public key represented by this key.
public String toString()
toString
in class StaticPublicKey
public boolean equals(Object o)
equals
in class StaticPublicKey
protected boolean canEqual(Object other)
canEqual
in class StaticPublicKey
public int hashCode()
hashCode
in class StaticPublicKey
Copyright © 2016–2022. All rights reserved.