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
JSON Web Token (JWT) identifier.
- See Also:
-
Field Summary
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom -
Constructor Summary
ConstructorsConstructorDescriptionJWTID()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.Creates a new JWT identifier with the specified value. -
Method Summary
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
Constructor Details
-
JWTID
Creates a new JWT identifier with the specified value.- Parameters:
value- The JWT identifier value. Must not benullor empty string.
-
JWTID
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 Details
-
equals
- Overrides:
equalsin classIdentifier
-