Class AuthorizationClientProperties


  • public class AuthorizationClientProperties
    extends Object
    Properties for an oauth2 client.
    • Constructor Detail

      • AuthorizationClientProperties

        public AuthorizationClientProperties()
    • 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
      • getScopes

        public List<String> getScopes()
        Gets the list of scopes.
        Returns:
        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