Class Login
java.lang.Object
com.azure.resourcemanager.appcontainers.models.Login
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Login>
The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allowedExternalRedirectUrls property: External URLs that can be redirected to as part of logging in or logging out of the app.Get the cookieExpiration property: The configuration settings of the session cookie's expiration.static Login
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of Login from the JsonReader.nonce()
Get the nonce property: The configuration settings of the nonce used in the login flow.Get the preserveUrlFragmentsForLogins property: <code>true</code> if the fragments from the request are preserved after the login request is made; otherwise, <code>false</code>.routes()
Get the routes property: The routes that specify the endpoints used for login and logout requests.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the tokenStore property: The configuration settings of the token store.void
validate()
Validates the instance.withAllowedExternalRedirectUrls
(List<String> allowedExternalRedirectUrls) Set the allowedExternalRedirectUrls property: External URLs that can be redirected to as part of logging in or logging out of the app.withCookieExpiration
(CookieExpiration cookieExpiration) Set the cookieExpiration property: The configuration settings of the session cookie's expiration.Set the nonce property: The configuration settings of the nonce used in the login flow.withPreserveUrlFragmentsForLogins
(Boolean preserveUrlFragmentsForLogins) Set the preserveUrlFragmentsForLogins property: <code>true</code> if the fragments from the request are preserved after the login request is made; otherwise, <code>false</code>.withRoutes
(LoginRoutes routes) Set the routes property: The routes that specify the endpoints used for login and logout requests.withTokenStore
(TokenStore tokenStore) Set the tokenStore property: The configuration settings of the token store.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
-
Login
public Login()Creates an instance of Login class.
-
-
Method Details
-
routes
Get the routes property: The routes that specify the endpoints used for login and logout requests.- Returns:
- the routes value.
-
withRoutes
Set the routes property: The routes that specify the endpoints used for login and logout requests.- Parameters:
routes
- the routes value to set.- Returns:
- the Login object itself.
-
tokenStore
Get the tokenStore property: The configuration settings of the token store.- Returns:
- the tokenStore value.
-
withTokenStore
Set the tokenStore property: The configuration settings of the token store.- Parameters:
tokenStore
- the tokenStore value to set.- Returns:
- the Login object itself.
-
preserveUrlFragmentsForLogins
Get the preserveUrlFragmentsForLogins property: <code>true</code> if the fragments from the request are preserved after the login request is made; otherwise, <code>false</code>.- Returns:
- the preserveUrlFragmentsForLogins value.
-
withPreserveUrlFragmentsForLogins
Set the preserveUrlFragmentsForLogins property: <code>true</code> if the fragments from the request are preserved after the login request is made; otherwise, <code>false</code>.- Parameters:
preserveUrlFragmentsForLogins
- the preserveUrlFragmentsForLogins value to set.- Returns:
- the Login object itself.
-
allowedExternalRedirectUrls
Get the allowedExternalRedirectUrls property: External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored. This is an advanced setting typically only needed by Windows Store application backends. Note that URLs within the current domain are always implicitly allowed.- Returns:
- the allowedExternalRedirectUrls value.
-
withAllowedExternalRedirectUrls
Set the allowedExternalRedirectUrls property: External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored. This is an advanced setting typically only needed by Windows Store application backends. Note that URLs within the current domain are always implicitly allowed.- Parameters:
allowedExternalRedirectUrls
- the allowedExternalRedirectUrls value to set.- Returns:
- the Login object itself.
-
cookieExpiration
Get the cookieExpiration property: The configuration settings of the session cookie's expiration.- Returns:
- the cookieExpiration value.
-
withCookieExpiration
Set the cookieExpiration property: The configuration settings of the session cookie's expiration.- Parameters:
cookieExpiration
- the cookieExpiration value to set.- Returns:
- the Login object itself.
-
nonce
Get the nonce property: The configuration settings of the nonce used in the login flow.- Returns:
- the nonce value.
-
withNonce
Set the nonce property: The configuration settings of the nonce used in the login flow.- Parameters:
nonce
- the nonce value to set.- Returns:
- the Login 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<Login>
- Throws:
IOException
-
fromJson
Reads an instance of Login from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of Login 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 Login.
-