public class OAuthBuilder extends Object
| 构造器和说明 |
|---|
OAuthBuilder() |
| 限定符和类型 | 方法和说明 |
|---|---|
OAuth |
build() |
OAuthBuilder |
grantTypes(List<GrantType> grantTypes)
Updates the grant types that this security definition represents
|
OAuthBuilder |
name(String name)
Updates the unique name to identify the security definition
|
OAuthBuilder |
scopes(List<AuthorizationScope> scopes)
Updates the authorization scopes with the new scopes
|
public OAuthBuilder scopes(List<AuthorizationScope> scopes)
scopes - - represents the oauth scopespublic OAuthBuilder grantTypes(List<GrantType> grantTypes)
grantTypes - - grant typespublic OAuthBuilder name(String name)
name - - namepublic OAuth build()
Copyright © 2023. All rights reserved.