AadBasedSecurityPrincipal Class
- java.
lang. Object - com.
azure. resourcemanager. confidentialledger. models. AadBasedSecurityPrincipal
- com.
Implements
public final class AadBasedSecurityPrincipal
implements JsonSerializable<AadBasedSecurityPrincipal>
AAD based security principal with associated Ledger RoleName.
Constructor Summary
Constructor | Description |
---|---|
AadBasedSecurityPrincipal() |
Creates an instance of Aad |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Aad |
fromJson(JsonReader jsonReader)
Reads an instance of Aad |
Ledger |
ledgerRoleName()
Get the ledger |
String |
principalId()
Get the principal |
String |
tenantId()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Aad |
withLedgerRoleName(LedgerRoleName ledgerRoleName)
Set the ledger |
Aad |
withPrincipalId(String principalId)
Set the principal |
Aad |
withTenantId(String tenantId)
Set the tenant |
Methods inherited from java.lang.Object
Constructor Details
AadBasedSecurityPrincipal
public AadBasedSecurityPrincipal()
Creates an instance of AadBasedSecurityPrincipal class.
Method Details
fromJson
public static AadBasedSecurityPrincipal fromJson(JsonReader jsonReader)
Reads an instance of AadBasedSecurityPrincipal from the JsonReader.
Parameters:
Returns:
Throws:
ledgerRoleName
public LedgerRoleName ledgerRoleName()
Get the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.
Returns:
principalId
public String principalId()
Get the principalId property: UUID/GUID based Principal Id of the Security Principal.
Returns:
tenantId
public String tenantId()
Get the tenantId property: UUID/GUID based Tenant Id of the Security Principal.
Returns:
toJson
validate
public void validate()
Validates the instance.
withLedgerRoleName
public AadBasedSecurityPrincipal withLedgerRoleName(LedgerRoleName ledgerRoleName)
Set the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.
Parameters:
Returns:
withPrincipalId
public AadBasedSecurityPrincipal withPrincipalId(String principalId)
Set the principalId property: UUID/GUID based Principal Id of the Security Principal.
Parameters:
Returns:
withTenantId
public AadBasedSecurityPrincipal withTenantId(String tenantId)
Set the tenantId property: UUID/GUID based Tenant Id of the Security Principal.
Parameters:
Returns:
Applies to
Azure SDK for Java