Class ScopeBuilder
java.lang.Object
com.github.scribejava.core.builder.ScopeBuilder
public class ScopeBuilder
extends java.lang.Object
OAuth2.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.
-
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
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)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ScopeBuilder
public ScopeBuilder() -
ScopeBuilder
public ScopeBuilder(java.lang.String scope) -
ScopeBuilder
public ScopeBuilder(java.lang.String... scopes) -
ScopeBuilder
public ScopeBuilder(java.util.Collection<java.lang.String> scopes)
-
-
Method Details
-
withScope
-
withScopes
-
withScopes
-
build
public java.lang.String build()
-