Class Identifier

java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
All Implemented Interfaces:
Serializable, Comparable<Identifier>, net.minidev.json.JSONAware
Direct Known Subclasses:
AccessTokenType, ACR, Action, AMR, Audience, AuthorizationCode, AuthorizedParty, AuthorizedParty, AuthRequestID, BackChannelTokenDeliveryMode, ClientAuthenticationMethod, ClientID, ClientRegistrationType, CodeChallenge, CodeChallengeMethod, CountryCode, DataType, DeviceCode, DocumentNumber, DocumentType, DPoPIssuer, ElectronicRecordType, EndpointName, EntityID, EntityType, Gender, GrantType, HashAlgorithm, HashClaim, IDDocumentType, IdentifierWithOptionalURIRepresentation, IdentityAssuranceLevel, IdentityEvidenceType, IdentityTrustFramework, IdentityVerificationMethod, Issuer, Jurisdiction, JWTID, MSISDN, Name, Nonce, Occupation, OperationName, Organization, PersonalNumber, Policy, Privilege, Procedure, ReferenceNumber, ResponseMode, ResponseType.Value, Scope.Value, SectorID, SerialNumber, SessionID, SignatureType, SoftwareID, SoftwareVersion, State, Status, Subject, Token, TXN, UserCode, ValidationMethodType, VerificationMethodType, VerificationProcess, VouchType

public class Identifier extends Object implements Serializable, Comparable<Identifier>, net.minidev.json.JSONAware
The base class for representing identifiers. Provides constructors that generate Base64URL-encoded secure random identifier values.

Extending classes must override the equals(java.lang.Object) method.

See Also:
  • Field Details

  • Constructor Details

    • Identifier

      public Identifier(String value)
      Creates a new identifier with the specified value.
      Parameters:
      value - The value. Must not be null or empty string.
    • Identifier

      public Identifier(int byteLength)
      Creates a new 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.
    • Identifier

      public Identifier()
      Creates a new identifier with a randomly generated 256-bit (32-byte) value, Base64URL-encoded.
  • Method Details