CertBasedSecurityPrincipal Class
- java.
lang. Object - com.
azure. resourcemanager. confidentialledger. models. CertBasedSecurityPrincipal
- com.
Implements
public final class CertBasedSecurityPrincipal
implements JsonSerializable<CertBasedSecurityPrincipal>
Cert based security principal with Ledger RoleName.
Constructor Summary
| Constructor | Description |
|---|---|
| CertBasedSecurityPrincipal() |
Creates an instance of Cert |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
cert()
Get the cert property: Public key of the user cert (.pem or .cer). |
|
static
Cert |
fromJson(JsonReader jsonReader)
Reads an instance of Cert |
|
Ledger |
ledgerRoleName()
Get the ledger |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Cert |
withCert(String cert)
Set the cert property: Public key of the user cert (.pem or .cer). |
|
Cert |
withLedgerRoleName(LedgerRoleName ledgerRoleName)
Set the ledger |
Methods inherited from java.lang.Object
Constructor Details
CertBasedSecurityPrincipal
public CertBasedSecurityPrincipal()
Creates an instance of CertBasedSecurityPrincipal class.
Method Details
cert
public String cert()
Get the cert property: Public key of the user cert (.pem or .cer).
Returns:
fromJson
public static CertBasedSecurityPrincipal fromJson(JsonReader jsonReader)
Reads an instance of CertBasedSecurityPrincipal from the JsonReader.
Parameters:
Returns:
Throws:
ledgerRoleName
public LedgerRoleName ledgerRoleName()
Get the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCert
public CertBasedSecurityPrincipal withCert(String cert)
Set the cert property: Public key of the user cert (.pem or .cer).
Parameters:
Returns:
withLedgerRoleName
public CertBasedSecurityPrincipal withLedgerRoleName(LedgerRoleName ledgerRoleName)
Set the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.
Parameters:
Returns: