Class OpenIdConnectConfig
java.lang.Object
com.azure.resourcemanager.appcontainers.models.OpenIdConnectConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenIdConnectConfig>
public final class OpenIdConnectConfig
extends Object
implements com.azure.json.JsonSerializable<OpenIdConnectConfig>
The configuration settings of the endpoints used for the custom Open ID Connect provider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the authorizationEndpoint property: The endpoint to be used to make an authorization request.Get the certificationUri property: The endpoint that provides the keys necessary to validate the token.static OpenIdConnectConfig
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of OpenIdConnectConfig from the JsonReader.issuer()
Get the issuer property: The endpoint that issues the token.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the tokenEndpoint property: The endpoint to be used to request a token.void
validate()
Validates the instance.Get the wellKnownOpenIdConfiguration property: The endpoint that contains all the configuration endpoints for the provider.withAuthorizationEndpoint
(String authorizationEndpoint) Set the authorizationEndpoint property: The endpoint to be used to make an authorization request.withCertificationUri
(String certificationUri) Set the certificationUri property: The endpoint that provides the keys necessary to validate the token.withIssuer
(String issuer) Set the issuer property: The endpoint that issues the token.withTokenEndpoint
(String tokenEndpoint) Set the tokenEndpoint property: The endpoint to be used to request a token.withWellKnownOpenIdConfiguration
(String wellKnownOpenIdConfiguration) Set the wellKnownOpenIdConfiguration property: The endpoint that contains all the configuration endpoints for the provider.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OpenIdConnectConfig
public OpenIdConnectConfig()Creates an instance of OpenIdConnectConfig class.
-
-
Method Details
-
authorizationEndpoint
Get the authorizationEndpoint property: The endpoint to be used to make an authorization request.- Returns:
- the authorizationEndpoint value.
-
withAuthorizationEndpoint
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.
-
tokenEndpoint
Get the tokenEndpoint property: The endpoint to be used to request a token.- Returns:
- the tokenEndpoint value.
-
withTokenEndpoint
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.
-
issuer
Get the issuer property: The endpoint that issues the token.- Returns:
- the issuer value.
-
withIssuer
Set the issuer property: The endpoint that issues the token.- Parameters:
issuer
- the issuer value to set.- Returns:
- the OpenIdConnectConfig object itself.
-
certificationUri
Get the certificationUri property: The endpoint that provides the keys necessary to validate the token.- Returns:
- the certificationUri value.
-
withCertificationUri
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.
-
wellKnownOpenIdConfiguration
Get the wellKnownOpenIdConfiguration property: The endpoint that contains all the configuration endpoints for the provider.- Returns:
- the wellKnownOpenIdConfiguration value.
-
withWellKnownOpenIdConfiguration
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<OpenIdConnectConfig>
- Throws:
IOException
-
fromJson
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.
-