Class DefaultPrincipal

java.lang.Object
com.sap.cloud.sdk.cloudplatform.security.principal.DefaultPrincipal
All Implemented Interfaces:
Principal

public class DefaultPrincipal extends Object implements Principal
This implementation of Principal represents the information available for an authenticated entity.
  • Constructor Details

    • DefaultPrincipal

      public DefaultPrincipal(@Nonnull String principalId)
      Creates a new DefaultPrincipal.
      Parameters:
      principalId - The ID of the principal
  • Method Details

    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • getPrincipalId

      @Nonnull public String getPrincipalId()
      Description copied from interface: Principal
      The identifier for this Principal.
      Specified by:
      getPrincipalId in interface Principal
      Returns:
      The identifier.