Package com.nimbusds.oauth2.sdk.id
Class JWTID
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.id.Identifier
-
- com.nimbusds.oauth2.sdk.id.JWTID
-
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
@Immutable public final class JWTID extends Identifier
JSON Web Token (JWT) identifier.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
-
Constructor Summary
Constructors Constructor Description JWTID()
Creates a new JWT identifier with a randomly generated 256-bit (32-byte) value, Base64URL-encoded.JWTID(int byteLength)
Creates a new JWT identifier with a randomly generated value of the specified byte length, Base64URL-encoded.JWTID(String value)
Creates a new JWT identifier with the specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
-
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
-
-
-
Constructor Detail
-
JWTID
public JWTID(String value)
Creates a new JWT identifier with the specified value.- Parameters:
value
- The JWT identifier value. Must not benull
or empty string.
-
JWTID
public JWTID(int byteLength)
Creates a new JWT identifier with a randomly generated value of the specified byte length, Base64URL-encoded.- Parameters:
byteLength
- The byte length of the value to generate. Must be greater than one.
-
JWTID
public JWTID()
Creates a new JWT identifier with a randomly generated 256-bit (32-byte) value, Base64URL-encoded.
-
-
Method Detail
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classIdentifier
-
-