Class Identity


  • public class Identity
    extends Object
    Describes how identity is verified.
    • Constructor Detail

      • Identity

        public Identity()
    • Method Detail

      • tenantId

        public String tenantId()
        Get the tenantId property: The identity tenantId.
        Returns:
        the tenantId value.
      • withTenantId

        public Identity withTenantId​(String tenantId)
        Set the tenantId property: The identity tenantId.
        Parameters:
        tenantId - the tenantId value to set.
        Returns:
        the Identity object itself.
      • principalId

        public String principalId()
        Get the principalId property: The identity principal ID.
        Returns:
        the principalId value.
      • withPrincipalId

        public Identity withPrincipalId​(String principalId)
        Set the principalId property: The identity principal ID.
        Parameters:
        principalId - the principalId value to set.
        Returns:
        the Identity object itself.
      • type

        public String type()
        Get the type property: The identity type.
        Returns:
        the type value.
      • withType

        public Identity withType​(String type)
        Set the type property: The identity type.
        Parameters:
        type - the type value to set.
        Returns:
        the Identity object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.