public class OAuthBuilder
extends java.lang.Object
Constructor and Description |
---|
OAuthBuilder() |
Modifier and Type | Method and Description |
---|---|
OAuth |
build() |
OAuthBuilder |
grantTypes(java.util.List<GrantType> grantTypes)
Updates the grant types that this security definition represents
|
OAuthBuilder |
name(java.lang.String name)
Updates the unique name to identify the security definition
|
OAuthBuilder |
scopes(java.util.List<AuthorizationScope> scopes)
Updates the authorization scopes with the new scopes
|
public OAuthBuilder scopes(java.util.List<AuthorizationScope> scopes)
scopes
- - represents the oauth scopespublic OAuthBuilder grantTypes(java.util.List<GrantType> grantTypes)
grantTypes
- - grant typespublic OAuthBuilder name(java.lang.String name)
name
- - namepublic OAuth build()