Class DefaultAuthorizationPolicy


  • public final class DefaultAuthorizationPolicy
    extends Object
    The configuration settings of the Azure Active Directory default authorization policy.
    • Constructor Detail

      • DefaultAuthorizationPolicy

        public DefaultAuthorizationPolicy()
    • Method Detail

      • allowedPrincipals

        public AllowedPrincipals allowedPrincipals()
        Get the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.
        Returns:
        the allowedPrincipals value.
      • withAllowedPrincipals

        public DefaultAuthorizationPolicy withAllowedPrincipals​(AllowedPrincipals allowedPrincipals)
        Set the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.
        Parameters:
        allowedPrincipals - the allowedPrincipals value to set.
        Returns:
        the DefaultAuthorizationPolicy object itself.
      • allowedApplications

        public List<String> allowedApplications()
        Get the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.
        Returns:
        the allowedApplications value.
      • withAllowedApplications

        public DefaultAuthorizationPolicy withAllowedApplications​(List<String> allowedApplications)
        Set the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.
        Parameters:
        allowedApplications - the allowedApplications value to set.
        Returns:
        the DefaultAuthorizationPolicy object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.