Class 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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set<java.lang.String> scopes  
    • Field Detail

      • scopes

        private final java.util.Set<java.lang.String> scopes
    • Constructor Detail

      • 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 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()