Enum AadApplicationType

java.lang.Object
java.lang.Enum<AadApplicationType>
com.azure.spring.cloud.autoconfigure.aad.properties.AadApplicationType
All Implemented Interfaces:
Serializable, Comparable<AadApplicationType>, java.lang.constant.Constable

public enum AadApplicationType extends Enum<AadApplicationType>
Azure AD 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 Details

    • WEB_APPLICATION

      public static final AadApplicationType WEB_APPLICATION
      Web application
    • RESOURCE_SERVER

      public static final AadApplicationType RESOURCE_SERVER
      Resource server
    • 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 Details

    • 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:
    • 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:
  • Method Details

    • values

      public static AadApplicationType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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