Enum AadApplicationType

  • All Implemented Interfaces:
    Serializable, Comparable<AadApplicationType>

    public enum AadApplicationType
    extends Enum<AadApplicationType>
    AAD application type.

    The value can be inferred by dependencies, only 'web_application_and_resource_server' must be configured manually.

     | Has dependency: spring-security-oauth2-client | Has dependency: spring-security-oauth2-resource-server | Valid values of application type                                                                       | Default value               |
     |-----------------------------------------------|--------------------------------------------------------|--------------------------------------------------------------------------------------------------------|-----------------------------|
     |                      Yes                      |                          No                            |  'web_application'                                                                                     |       'web_application'     |
     |                      No                       |                          Yes                           |  'resource_server'                                                                                     |       'resource_server'     |
     |                      Yes                      |                          Yes                           |  'web_application','resource_server','resource_server_with_obo', 'web_application_and_resource_server' | 'resource_server_with_obo'  |
     
    • Enum Constant Detail

      • RESOURCE_SERVER_WITH_OBO

        public static final AadApplicationType RESOURCE_SERVER_WITH_OBO
        Resource server with OBO
      • WEB_APPLICATION_AND_RESOURCE_SERVER

        public static final AadApplicationType WEB_APPLICATION_AND_RESOURCE_SERVER
        Web application and resource server
    • Field Detail

      • SPRING_SECURITY_OAUTH2_CLIENT_CLASS_NAME

        public static final String SPRING_SECURITY_OAUTH2_CLIENT_CLASS_NAME
        The Spring security OAuth2 client class name
        See Also:
        Constant Field Values
      • SPRING_SECURITY_OAUTH2_RESOURCE_SERVER_CLASS_NAME

        public static final String SPRING_SECURITY_OAUTH2_RESOURCE_SERVER_CLASS_NAME
        The Spring security OAuth2 resource server class name
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static AadApplicationType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AadApplicationType c : AadApplicationType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AadApplicationType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public String getValue()
        Gets the string representation of the enum.
        Returns:
        the string representation of the enum
      • inferApplicationTypeByDependencies

        public static AadApplicationType inferApplicationTypeByDependencies()
        Infer application type by dependencies
        Returns:
        AADApplicationType