Поделиться через


OpenIdConnectConfig Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.OpenIdConnectConfig

Implements

public final class OpenIdConnectConfig
implements JsonSerializable<OpenIdConnectConfig>

The configuration settings of the endpoints used for the custom Open ID Connect provider.

Constructor Summary

Constructor Description
OpenIdConnectConfig()

Creates an instance of OpenIdConnectConfig class.

Method Summary

Modifier and Type Method and Description
String authorizationEndpoint()

Get the authorizationEndpoint property: The endpoint to be used to make an authorization request.

String certificationUri()

Get the certificationUri property: The endpoint that provides the keys necessary to validate the token.

static OpenIdConnectConfig fromJson(JsonReader jsonReader)

Reads an instance of OpenIdConnectConfig from the JsonReader.

String issuer()

Get the issuer property: The endpoint that issues the token.

JsonWriter toJson(JsonWriter jsonWriter)
String tokenEndpoint()

Get the tokenEndpoint property: The endpoint to be used to request a token.

void validate()

Validates the instance.

String wellKnownOpenIdConfiguration()

Get the wellKnownOpenIdConfiguration property: The endpoint that contains all the configuration endpoints for the provider.

OpenIdConnectConfig withAuthorizationEndpoint(String authorizationEndpoint)

Set the authorizationEndpoint property: The endpoint to be used to make an authorization request.

OpenIdConnectConfig withCertificationUri(String certificationUri)

Set the certificationUri property: The endpoint that provides the keys necessary to validate the token.

OpenIdConnectConfig withIssuer(String issuer)

Set the issuer property: The endpoint that issues the token.

OpenIdConnectConfig withTokenEndpoint(String tokenEndpoint)

Set the tokenEndpoint property: The endpoint to be used to request a token.

OpenIdConnectConfig withWellKnownOpenIdConfiguration(String wellKnownOpenIdConfiguration)

Set the wellKnownOpenIdConfiguration property: The endpoint that contains all the configuration endpoints for the provider.

Methods inherited from java.lang.Object

Constructor Details

OpenIdConnectConfig

public OpenIdConnectConfig()

Creates an instance of OpenIdConnectConfig class.

Method Details

authorizationEndpoint

public String authorizationEndpoint()

Get the authorizationEndpoint property: The endpoint to be used to make an authorization request.

Returns:

the authorizationEndpoint value.

certificationUri

public String certificationUri()

Get the certificationUri property: The endpoint that provides the keys necessary to validate the token.

Returns:

the certificationUri value.

fromJson

public static OpenIdConnectConfig fromJson(JsonReader jsonReader)

Reads an instance of OpenIdConnectConfig from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

issuer

public String issuer()

Get the issuer property: The endpoint that issues the token.

Returns:

the issuer value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

tokenEndpoint

public String tokenEndpoint()

Get the tokenEndpoint property: The endpoint to be used to request a token.

Returns:

the tokenEndpoint value.

validate

public void validate()

Validates the instance.

wellKnownOpenIdConfiguration

public String wellKnownOpenIdConfiguration()

Get the wellKnownOpenIdConfiguration property: The endpoint that contains all the configuration endpoints for the provider.

Returns:

the wellKnownOpenIdConfiguration value.

withAuthorizationEndpoint

public OpenIdConnectConfig withAuthorizationEndpoint(String authorizationEndpoint)

Set the authorizationEndpoint property: The endpoint to be used to make an authorization request.

Parameters:

authorizationEndpoint - the authorizationEndpoint value to set.

Returns:

the OpenIdConnectConfig object itself.

withCertificationUri

public OpenIdConnectConfig withCertificationUri(String certificationUri)

Set the certificationUri property: The endpoint that provides the keys necessary to validate the token.

Parameters:

certificationUri - the certificationUri value to set.

Returns:

the OpenIdConnectConfig object itself.

withIssuer

public OpenIdConnectConfig withIssuer(String issuer)

Set the issuer property: The endpoint that issues the token.

Parameters:

issuer - the issuer value to set.

Returns:

the OpenIdConnectConfig object itself.

withTokenEndpoint

public OpenIdConnectConfig withTokenEndpoint(String tokenEndpoint)

Set the tokenEndpoint property: The endpoint to be used to request a token.

Parameters:

tokenEndpoint - the tokenEndpoint value to set.

Returns:

the OpenIdConnectConfig object itself.

withWellKnownOpenIdConfiguration

public OpenIdConnectConfig withWellKnownOpenIdConfiguration(String wellKnownOpenIdConfiguration)

Set the wellKnownOpenIdConfiguration property: The endpoint that contains all the configuration endpoints for the provider.

Parameters:

wellKnownOpenIdConfiguration - the wellKnownOpenIdConfiguration value to set.

Returns:

the OpenIdConnectConfig object itself.

Applies to