Package com.azure.spring.aad.webapp
Class AuthorizationClientProperties
- java.lang.Object
-
- com.azure.spring.aad.webapp.AuthorizationClientProperties
-
public class AuthorizationClientProperties extends Object
Properties for an oauth2 client.
-
-
Constructor Summary
Constructors Constructor Description AuthorizationClientProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AADAuthorizationGrantTypegetAuthorizationGrantType()Gets the authorization grant type.List<String>getScopes()Gets the list of scopes.booleanisOnDemand()Deprecated.The AuthorizationGrantType of on-demand clients should be authorization_code.voidsetAuthorizationGrantType(AADAuthorizationGrantType authorizationGrantType)Sets the authorization grant type.voidsetOnDemand(boolean onDemand)Deprecated.The AuthorizationGrantType of on-demand clients should be authorization_code.voidsetScopes(List<String> scopes)Sets the list of scopes.
-
-
-
Method Detail
-
getAuthorizationGrantType
public AADAuthorizationGrantType getAuthorizationGrantType()
Gets the authorization grant type.- Returns:
- the authorization grant type
-
setAuthorizationGrantType
public void setAuthorizationGrantType(AADAuthorizationGrantType authorizationGrantType)
Sets the authorization grant type.- Parameters:
authorizationGrantType- the authorization grant type
-
setScopes
public void setScopes(List<String> scopes)
Sets the list of scopes.- Parameters:
scopes- the list of scopes
-
isOnDemand
@Deprecated @DeprecatedConfigurationProperty(reason="The AuthorizationGrantType of on-demand clients should be authorization_code.", replacement="Set oauth client AuthorizationGrantType to authorization_code, which means it\'s on-demand.") public boolean isOnDemand()
Deprecated.The AuthorizationGrantType of on-demand clients should be authorization_code. Set oauth client AuthorizationGrantType to authorization_code, which means it's on-demand.Whether authorization is on demand.- Returns:
- whether authorization is on demand
-
setOnDemand
@Deprecated public void setOnDemand(boolean onDemand)
Deprecated.The AuthorizationGrantType of on-demand clients should be authorization_code. Set oauth client AuthorizationGrantType to authorization_code, which means it's on-demand.Sets whether authorization is on demand.- Parameters:
onDemand- whether authorization is on demand
-
-