@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 JsonWebKey.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (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
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
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.
|
boolean |
equals(Object o) |
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() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getKid
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@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 String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class StaticPublicKey
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class StaticPublicKey
public int hashCode()
hashCode
in class StaticPublicKey
Copyright © 2016–2024. All rights reserved.