Freigeben über


CertBasedSecurityPrincipal Class

  • java.lang.Object
    • com.azure.resourcemanager.confidentialledger.models.CertBasedSecurityPrincipal

Implements

public final class CertBasedSecurityPrincipal
implements JsonSerializable<CertBasedSecurityPrincipal>

Cert based security principal with Ledger RoleName.

Constructor Summary

Constructor Description
CertBasedSecurityPrincipal()

Creates an instance of CertBasedSecurityPrincipal class.

Method Summary

Modifier and Type Method and Description
String cert()

Get the cert property: Public key of the user cert (.pem or .cer).

static CertBasedSecurityPrincipal fromJson(JsonReader jsonReader)

Reads an instance of CertBasedSecurityPrincipal from the JsonReader.

LedgerRoleName ledgerRoleName()

Get the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

the cert value.

fromJson

public static CertBasedSecurityPrincipal fromJson(JsonReader jsonReader)

Reads an instance of CertBasedSecurityPrincipal from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CertBasedSecurityPrincipal if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the CertBasedSecurityPrincipal.

ledgerRoleName

public LedgerRoleName ledgerRoleName()

Get the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.

Returns:

the ledgerRoleName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

cert - the cert value to set.

Returns:

the CertBasedSecurityPrincipal object itself.

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.

Applies to