public final class Login extends Object
| Constructor and Description |
|---|
Login() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
allowedExternalRedirectUrls()
Get the allowedExternalRedirectUrls property: External URLs that can be redirected to as part of logging in or
logging out of the app.
|
CookieExpiration |
cookieExpiration()
Get the cookieExpiration property: The configuration settings of the session cookie's expiration.
|
Nonce |
nonce()
Get the nonce property: The configuration settings of the nonce used in the login flow.
|
Boolean |
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>.
|
LoginRoutes |
routes()
Get the routes property: The routes that specify the endpoints used for login and logout requests.
|
TokenStore |
tokenStore()
Get the tokenStore property: The configuration settings of the token store.
|
void |
validate()
Validates the instance.
|
Login |
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.
|
Login |
withCookieExpiration(CookieExpiration cookieExpiration)
Set the cookieExpiration property: The configuration settings of the session cookie's expiration.
|
Login |
withNonce(Nonce nonce)
Set the nonce property: The configuration settings of the nonce used in the login flow.
|
Login |
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>.
|
Login |
withRoutes(LoginRoutes routes)
Set the routes property: The routes that specify the endpoints used for login and logout requests.
|
Login |
withTokenStore(TokenStore tokenStore)
Set the tokenStore property: The configuration settings of the token store.
|
public LoginRoutes routes()
public Login withRoutes(LoginRoutes routes)
routes - the routes value to set.public TokenStore tokenStore()
public Login withTokenStore(TokenStore tokenStore)
tokenStore - the tokenStore value to set.public Boolean preserveUrlFragmentsForLogins()
public Login withPreserveUrlFragmentsForLogins(Boolean preserveUrlFragmentsForLogins)
preserveUrlFragmentsForLogins - the preserveUrlFragmentsForLogins value to set.public List<String> allowedExternalRedirectUrls()
public Login withAllowedExternalRedirectUrls(List<String> allowedExternalRedirectUrls)
allowedExternalRedirectUrls - the allowedExternalRedirectUrls value to set.public CookieExpiration cookieExpiration()
public Login withCookieExpiration(CookieExpiration cookieExpiration)
cookieExpiration - the cookieExpiration value to set.public Nonce nonce()
public Login withNonce(Nonce nonce)
nonce - the nonce value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.