Class CertBasedSecurityPrincipal
- java.lang.Object
-
- com.azure.resourcemanager.confidentialledger.models.CertBasedSecurityPrincipal
-
public final class CertBasedSecurityPrincipal extends Object
Cert based security principal with Ledger RoleName.
-
-
Constructor Summary
Constructors Constructor Description CertBasedSecurityPrincipal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
cert()
Get the cert property: Public key of the user cert (.pem or .cer).LedgerRoleName
ledgerRoleName()
Get the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.void
validate()
Validates the instance.CertBasedSecurityPrincipal
withCert(String cert)
Set the cert property: Public key of the user cert (.pem or .cer).CertBasedSecurityPrincipal
withLedgerRoleName(LedgerRoleName ledgerRoleName)
Set the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.
-
-
-
Method Detail
-
cert
public String cert()
Get the cert property: Public key of the user cert (.pem or .cer).- Returns:
- the cert value.
-
withCert
public CertBasedSecurityPrincipal withCert(String cert)
Set the cert property: Public key of the user cert (.pem or .cer).- Parameters:
cert
- the cert value to set.- Returns:
- the CertBasedSecurityPrincipal object itself.
-
ledgerRoleName
public LedgerRoleName ledgerRoleName()
Get the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.- Returns:
- the ledgerRoleName value.
-
withLedgerRoleName
public CertBasedSecurityPrincipal withLedgerRoleName(LedgerRoleName ledgerRoleName)
Set the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.- Parameters:
ledgerRoleName
- the ledgerRoleName value to set.- Returns:
- the CertBasedSecurityPrincipal object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-