类 OAuthBuilder

java.lang.Object
springfox.documentation.builders.OAuthBuilder

public class OAuthBuilder extends Object
  • 构造器详细资料

    • OAuthBuilder

      public OAuthBuilder()
  • 方法详细资料

    • scopes

      public OAuthBuilder scopes(List<AuthorizationScope> scopes)
      Updates the authorization scopes with the new scopes
      参数:
      scopes - - represents the oauth scopes
      返回:
      this
    • grantTypes

      public OAuthBuilder grantTypes(List<GrantType> grantTypes)
      Updates the grant types that this security definition represents
      参数:
      grantTypes - - grant types
      返回:
      this
    • name

      public OAuthBuilder name(String name)
      Updates the unique name to identify the security definition
      参数:
      name - - name
      返回:
      this
    • build

      public OAuth build()