Class Subject

java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.oauth2.sdk.id.Subject
All Implemented Interfaces:
Serializable, Comparable<Identifier>, net.minidev.json.JSONAware

@Immutable public final class Subject extends Identifier
Subject (user) identifier.
See Also:
  • Constructor Details

    • Subject

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

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

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