Package springfox.documentation.builders
Class OAuthBuilder
- java.lang.Object
-
- springfox.documentation.builders.OAuthBuilder
-
public class OAuthBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description OAuthBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth
build()
OAuthBuilder
grantTypes(java.util.List<GrantType> grantTypes)
Updates the grant types that this security definition representsOAuthBuilder
name(java.lang.String name)
Updates the unique name to identify the security definitionOAuthBuilder
scopes(java.util.List<AuthorizationScope> scopes)
Updates the authorization scopes with the new scopes
-
-
-
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()
-
-