Class ScopeMatcher

    • Constructor Detail

      • ScopeMatcher

        public ScopeMatcher​(@NonNull
                            CredentialsScope scope)
        Constructs a new instance.
        Parameters:
        scope - the scope to match.
      • ScopeMatcher

        public ScopeMatcher​(@NonNull
                            CredentialsScope... scopes)
        Constructs a new instance.
        Parameters:
        scopes - the scopes to match.
      • ScopeMatcher

        public ScopeMatcher​(@NonNull
                            Collection<CredentialsScope> scopes)
        Constructs a new instance.
        Parameters:
        scopes - the scopes to match.
    • Method Detail

      • matches

        public boolean matches​(@NonNull
                               Credentials item)
        Evaluates the matcher for the specified credentials.
        Specified by:
        matches in interface CredentialsMatcher
        Parameters:
        item - the specified credentials.
        Returns:
        true if and only if the specified credentials match.
      • describe

        public String describe()
        Describes this matcher in terms of a java-bean style query language
        Specified by:
        describe in interface CredentialsMatcher.CQL
        Returns:
        the description of the credentials matcher query or null if the matcher cannot be expressed in CQL.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object