Class AadBasedSecurityPrincipal


  • public final class AadBasedSecurityPrincipal
    extends Object
    AAD based security principal with associated Ledger RoleName.
    • Constructor Detail

      • AadBasedSecurityPrincipal

        public AadBasedSecurityPrincipal()
    • Method Detail

      • principalId

        public String principalId()
        Get the principalId property: UUID/GUID based Principal Id of the Security Principal.
        Returns:
        the principalId value.
      • withPrincipalId

        public AadBasedSecurityPrincipal withPrincipalId​(String principalId)
        Set the principalId property: UUID/GUID based Principal Id of the Security Principal.
        Parameters:
        principalId - the principalId value to set.
        Returns:
        the AadBasedSecurityPrincipal object itself.
      • tenantId

        public String tenantId()
        Get the tenantId property: UUID/GUID based Tenant Id of the Security Principal.
        Returns:
        the tenantId value.
      • withTenantId

        public AadBasedSecurityPrincipal withTenantId​(String tenantId)
        Set the tenantId property: UUID/GUID based Tenant Id of the Security Principal.
        Parameters:
        tenantId - the tenantId value to set.
        Returns:
        the AadBasedSecurityPrincipal object itself.
      • ledgerRoleName

        public LedgerRoleName ledgerRoleName()
        Get the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.
        Returns:
        the ledgerRoleName value.
      • withLedgerRoleName

        public AadBasedSecurityPrincipal withLedgerRoleName​(LedgerRoleName ledgerRoleName)
        Set the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.
        Parameters:
        ledgerRoleName - the ledgerRoleName value to set.
        Returns:
        the AadBasedSecurityPrincipal object itself.
      • validate

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