Class ScopeBuilder
- java.lang.Object
-
- com.github.scribejava.core.builder.ScopeBuilder
-
public class ScopeBuilder extends java.lang.ObjectOAuth2.0 Scope Builder. It allows specifying multiple scopes one by one. It will combine them in the single space-delimited string. OAuth 2.0 standard specifies space as a delimiter for scopes (https://tools.ietf.org/html/rfc6749#section-3.3). If you found API, that do not support spaces, but support something else, let ScribeJava know (submit the issue here https://github.com/scribejava/scribejava/issues) and use your own concatenated string as a temporary workaround.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>scopes
-
Constructor Summary
Constructors Constructor Description ScopeBuilder()ScopeBuilder(java.lang.String scope)ScopeBuilder(java.lang.String... scopes)ScopeBuilder(java.util.Collection<java.lang.String> scopes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringbuild()ScopeBuilderwithScope(java.lang.String scope)ScopeBuilderwithScopes(java.lang.String... scopes)ScopeBuilderwithScopes(java.util.Collection<java.lang.String> scopes)
-
-
-
Method Detail
-
withScope
public final ScopeBuilder withScope(java.lang.String scope)
-
withScopes
public final ScopeBuilder withScopes(java.lang.String... scopes)
-
withScopes
public final ScopeBuilder withScopes(java.util.Collection<java.lang.String> scopes)
-
build
public java.lang.String build()
-
-