Class OA2Scopes.ScopeUtil

  • Enclosing interface:
    OA2Scopes

    public static class OA2Scopes.ScopeUtil
    extends Object
    Utility that checks if a given scope is allowed by the protocol. The scopes in this interface are all potentially supported by a server. Basic support only requires that the open id scope be present.
    • Constructor Detail

      • ScopeUtil

        public ScopeUtil()
    • Method Detail

      • hasScope

        public static boolean hasScope​(String targetScope)
      • toScopes

        public static Collection<String> toScopes​(String x)
        return a collection from the given string of scopes. note that this applies the specification to parse the string, so all scopes are blank delimited.
        Parameters:
        x -
        Returns:
      • toString

        public static String toString​(Collection<String> scopes)
        Given a scope collection, turn it into a blank delimited string.
        Parameters:
        scopes -
        Returns: