次の方法で共有


ClientCertificateAuthentication Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.ClientCertificateAuthentication

Implements

public final class ClientCertificateAuthentication
implements JsonSerializable<ClientCertificateAuthentication>

The certificate authentication properties for the client.

Constructor Summary

Constructor Description
ClientCertificateAuthentication()

Creates an instance of ClientCertificateAuthentication class.

Method Summary

Modifier and Type Method and Description
List<String> allowedThumbprints()

Get the allowedThumbprints property: The list of thumbprints that are allowed during client authentication.

static ClientCertificateAuthentication fromJson(JsonReader jsonReader)

Reads an instance of ClientCertificateAuthentication from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ClientCertificateValidationScheme validationScheme()

Get the validationScheme property: The validation scheme used to authenticate the client.

ClientCertificateAuthentication withAllowedThumbprints(List<String> allowedThumbprints)

Set the allowedThumbprints property: The list of thumbprints that are allowed during client authentication.

ClientCertificateAuthentication withValidationScheme(ClientCertificateValidationScheme validationScheme)

Set the validationScheme property: The validation scheme used to authenticate the client.

Methods inherited from java.lang.Object

Constructor Details

ClientCertificateAuthentication

public ClientCertificateAuthentication()

Creates an instance of ClientCertificateAuthentication class.

Method Details

allowedThumbprints

public List<String> allowedThumbprints()

Get the allowedThumbprints property: The list of thumbprints that are allowed during client authentication. This property is required only if the validationScheme is 'ThumbprintMatch'.

Returns:

the allowedThumbprints value.

fromJson

public static ClientCertificateAuthentication fromJson(JsonReader jsonReader)

Reads an instance of ClientCertificateAuthentication from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ClientCertificateAuthentication 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 ClientCertificateAuthentication.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

validationScheme

public ClientCertificateValidationScheme validationScheme()

Get the validationScheme property: The validation scheme used to authenticate the client. Default value is SubjectMatchesAuthenticationName.

Returns:

the validationScheme value.

withAllowedThumbprints

public ClientCertificateAuthentication withAllowedThumbprints(List<String> allowedThumbprints)

Set the allowedThumbprints property: The list of thumbprints that are allowed during client authentication. This property is required only if the validationScheme is 'ThumbprintMatch'.

Parameters:

allowedThumbprints - the allowedThumbprints value to set.

Returns:

the ClientCertificateAuthentication object itself.

withValidationScheme

public ClientCertificateAuthentication withValidationScheme(ClientCertificateValidationScheme validationScheme)

Set the validationScheme property: The validation scheme used to authenticate the client. Default value is SubjectMatchesAuthenticationName.

Parameters:

validationScheme - the validationScheme value to set.

Returns:

the ClientCertificateAuthentication object itself.

Applies to