public final class GlobalValidation extends Object
| Constructor and Description |
|---|
GlobalValidation() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
excludedPaths()
Get the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login
page.
|
String |
redirectToProvider()
Get the redirectToProvider property: The default authentication provider to use when multiple providers are
configured.
|
Boolean |
requireAuthentication()
Get the requireAuthentication property: <code>true</code> if the authentication flow is required any
request is made; otherwise, <code>false</code>.
|
UnauthenticatedClientActionV2 |
unauthenticatedClientAction()
Get the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to
access the app.
|
void |
validate()
Validates the instance.
|
GlobalValidation |
withExcludedPaths(List<String> excludedPaths)
Set the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login
page.
|
GlobalValidation |
withRedirectToProvider(String redirectToProvider)
Set the redirectToProvider property: The default authentication provider to use when multiple providers are
configured.
|
GlobalValidation |
withRequireAuthentication(Boolean requireAuthentication)
Set the requireAuthentication property: <code>true</code> if the authentication flow is required any
request is made; otherwise, <code>false</code>.
|
GlobalValidation |
withUnauthenticatedClientAction(UnauthenticatedClientActionV2 unauthenticatedClientAction)
Set the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to
access the app.
|
public Boolean requireAuthentication()
public GlobalValidation withRequireAuthentication(Boolean requireAuthentication)
requireAuthentication - the requireAuthentication value to set.public UnauthenticatedClientActionV2 unauthenticatedClientAction()
public GlobalValidation withUnauthenticatedClientAction(UnauthenticatedClientActionV2 unauthenticatedClientAction)
unauthenticatedClientAction - the unauthenticatedClientAction value to set.public String redirectToProvider()
public GlobalValidation withRedirectToProvider(String redirectToProvider)
redirectToProvider - the redirectToProvider value to set.public List<String> excludedPaths()
public GlobalValidation withExcludedPaths(List<String> excludedPaths)
excludedPaths - the excludedPaths 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.