Class OAuthBuilder


  • public class OAuthBuilder
    extends java.lang.Object
    • Constructor Detail

      • OAuthBuilder

        public OAuthBuilder()
    • Method Detail

      • scopes

        public OAuthBuilder scopes​(java.util.List<AuthorizationScope> scopes)
        Updates the authorization scopes with the new scopes
        Parameters:
        scopes - - represents the oauth scopes
        Returns:
        this
      • grantTypes

        public OAuthBuilder grantTypes​(java.util.List<GrantType> grantTypes)
        Updates the grant types that this security definition represents
        Parameters:
        grantTypes - - grant types
        Returns:
        this
      • name

        public OAuthBuilder name​(java.lang.String name)
        Updates the unique name to identify the security definition
        Parameters:
        name - - name
        Returns:
        this
      • build

        public OAuth build()