次の方法で共有


CustomJwtAuthenticationSettings Class

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

Implements

public final class CustomJwtAuthenticationSettings
implements JsonSerializable<CustomJwtAuthenticationSettings>

Custom JWT authentication settings for namespace resource.

Constructor Summary

Constructor Description
CustomJwtAuthenticationSettings()

Creates an instance of CustomJwtAuthenticationSettings class.

Method Summary

Modifier and Type Method and Description
List<EncodedIssuerCertificateInfo> encodedIssuerCertificates()

Get the encodedIssuerCertificates property: Information about the encoded public certificates that are used for custom authentication.

static CustomJwtAuthenticationSettings fromJson(JsonReader jsonReader)

Reads an instance of CustomJwtAuthenticationSettings from the JsonReader.

List<IssuerCertificateInfo> issuerCertificates()

Get the issuerCertificates property: Information about the certificates that are used for token validation.

JsonWriter toJson(JsonWriter jsonWriter)
String tokenIssuer()

Get the tokenIssuer property: Expected JWT token issuer.

void validate()

Validates the instance.

CustomJwtAuthenticationSettings withEncodedIssuerCertificates(List<EncodedIssuerCertificateInfo> encodedIssuerCertificates)

Set the encodedIssuerCertificates property: Information about the encoded public certificates that are used for custom authentication.

CustomJwtAuthenticationSettings withIssuerCertificates(List<IssuerCertificateInfo> issuerCertificates)

Set the issuerCertificates property: Information about the certificates that are used for token validation.

CustomJwtAuthenticationSettings withTokenIssuer(String tokenIssuer)

Set the tokenIssuer property: Expected JWT token issuer.

Methods inherited from java.lang.Object

Constructor Details

CustomJwtAuthenticationSettings

public CustomJwtAuthenticationSettings()

Creates an instance of CustomJwtAuthenticationSettings class.

Method Details

encodedIssuerCertificates

public List<EncodedIssuerCertificateInfo> encodedIssuerCertificates()

Get the encodedIssuerCertificates property: Information about the encoded public certificates that are used for custom authentication.

Returns:

the encodedIssuerCertificates value.

fromJson

public static CustomJwtAuthenticationSettings fromJson(JsonReader jsonReader)

Reads an instance of CustomJwtAuthenticationSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

issuerCertificates

public List<IssuerCertificateInfo> issuerCertificates()

Get the issuerCertificates property: Information about the certificates that are used for token validation. We currently support maximum 2 certificates.

Returns:

the issuerCertificates value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

tokenIssuer

public String tokenIssuer()

Get the tokenIssuer property: Expected JWT token issuer.

Returns:

the tokenIssuer value.

validate

public void validate()

Validates the instance.

withEncodedIssuerCertificates

public CustomJwtAuthenticationSettings withEncodedIssuerCertificates(List<EncodedIssuerCertificateInfo> encodedIssuerCertificates)

Set the encodedIssuerCertificates property: Information about the encoded public certificates that are used for custom authentication.

Parameters:

encodedIssuerCertificates - the encodedIssuerCertificates value to set.

Returns:

the CustomJwtAuthenticationSettings object itself.

withIssuerCertificates

public CustomJwtAuthenticationSettings withIssuerCertificates(List<IssuerCertificateInfo> issuerCertificates)

Set the issuerCertificates property: Information about the certificates that are used for token validation. We currently support maximum 2 certificates.

Parameters:

issuerCertificates - the issuerCertificates value to set.

Returns:

the CustomJwtAuthenticationSettings object itself.

withTokenIssuer

public CustomJwtAuthenticationSettings withTokenIssuer(String tokenIssuer)

Set the tokenIssuer property: Expected JWT token issuer.

Parameters:

tokenIssuer - the tokenIssuer value to set.

Returns:

the CustomJwtAuthenticationSettings object itself.

Applies to