Class SID

All Implemented Interfaces:
Identifier, Comparable<Identifier>, net.minidev.json.JSONAware

public final class SID extends BaseIdentifier
Represents a secure immutable session identifier (SID).
  • Constructor Details

    • SID

      public SID()
      Creates a new unique session identifier (SID) based on a secure randomly generated 256-bit number, Base64URL-encoded.
    • SID

      public SID(String value)
      Creates a new session identifier (SID) from the specified string.
      Parameters:
      value - The session identifier (SID) value.
  • Method Details

    • equals

      public boolean equals(Object object)
      Overrides Object.equals().
      Specified by:
      equals in class BaseIdentifier
      Parameters:
      object - The object to compare to.
      Returns:
      true if the objects have the same value, otherwise false.