Class AzureActiveDirectoryValidation
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.AzureActiveDirectoryValidation
-
public final class AzureActiveDirectoryValidation extends Object
The configuration settings of the Azure Active Directory token validation flow.
-
-
Constructor Summary
Constructors Constructor Description AzureActiveDirectoryValidation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
allowedAudiences()
Get the allowedAudiences property: The list of audiences that can make successful authentication/authorization requests.DefaultAuthorizationPolicy
defaultAuthorizationPolicy()
Get the defaultAuthorizationPolicy property: The configuration settings of the default authorization policy.JwtClaimChecks
jwtClaimChecks()
Get the jwtClaimChecks property: The configuration settings of the checks that should be made while validating the JWT Claims.void
validate()
Validates the instance.AzureActiveDirectoryValidation
withAllowedAudiences(List<String> allowedAudiences)
Set the allowedAudiences property: The list of audiences that can make successful authentication/authorization requests.AzureActiveDirectoryValidation
withDefaultAuthorizationPolicy(DefaultAuthorizationPolicy defaultAuthorizationPolicy)
Set the defaultAuthorizationPolicy property: The configuration settings of the default authorization policy.AzureActiveDirectoryValidation
withJwtClaimChecks(JwtClaimChecks jwtClaimChecks)
Set the jwtClaimChecks property: The configuration settings of the checks that should be made while validating the JWT Claims.
-
-
-
Method Detail
-
jwtClaimChecks
public JwtClaimChecks jwtClaimChecks()
Get the jwtClaimChecks property: The configuration settings of the checks that should be made while validating the JWT Claims.- Returns:
- the jwtClaimChecks value.
-
withJwtClaimChecks
public AzureActiveDirectoryValidation withJwtClaimChecks(JwtClaimChecks jwtClaimChecks)
Set the jwtClaimChecks property: The configuration settings of the checks that should be made while validating the JWT Claims.- Parameters:
jwtClaimChecks
- the jwtClaimChecks value to set.- Returns:
- the AzureActiveDirectoryValidation object itself.
-
allowedAudiences
public List<String> allowedAudiences()
Get the allowedAudiences property: The list of audiences that can make successful authentication/authorization requests.- Returns:
- the allowedAudiences value.
-
withAllowedAudiences
public AzureActiveDirectoryValidation withAllowedAudiences(List<String> allowedAudiences)
Set the allowedAudiences property: The list of audiences that can make successful authentication/authorization requests.- Parameters:
allowedAudiences
- the allowedAudiences value to set.- Returns:
- the AzureActiveDirectoryValidation object itself.
-
defaultAuthorizationPolicy
public DefaultAuthorizationPolicy defaultAuthorizationPolicy()
Get the defaultAuthorizationPolicy property: The configuration settings of the default authorization policy.- Returns:
- the defaultAuthorizationPolicy value.
-
withDefaultAuthorizationPolicy
public AzureActiveDirectoryValidation withDefaultAuthorizationPolicy(DefaultAuthorizationPolicy defaultAuthorizationPolicy)
Set the defaultAuthorizationPolicy property: The configuration settings of the default authorization policy.- Parameters:
defaultAuthorizationPolicy
- the defaultAuthorizationPolicy value to set.- Returns:
- the AzureActiveDirectoryValidation object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-