Enum AadApplicationType
- java.lang.Object
-
- java.lang.Enum<AadApplicationType>
-
- com.azure.spring.cloud.autoconfigure.aad.properties.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 Summary
Enum Constants Enum Constant Description RESOURCE_SERVERResource serverRESOURCE_SERVER_WITH_OBOResource server with OBOWEB_APPLICATIONWeb applicationWEB_APPLICATION_AND_RESOURCE_SERVERWeb application and resource server
-
Field Summary
Fields Modifier and Type Field Description static StringSPRING_SECURITY_OAUTH2_CLIENT_CLASS_NAMEThe Spring security OAuth2 client class namestatic StringSPRING_SECURITY_OAUTH2_RESOURCE_SERVER_CLASS_NAMEThe Spring security OAuth2 resource server class name
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()Gets the string representation of the enum.static AadApplicationTypeinferApplicationTypeByDependencies()Infer application type by dependenciesstatic AadApplicationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AadApplicationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 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 nameNullPointerException- 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
-
-