Interface CredentialsMatcher
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
CredentialsMatcher.CQL
- All Known Implementing Classes:
AllOfMatcher
,AnyOfMatcher
,BeanPropertyMatcher
,ConstantMatcher
,IdMatcher
,InstanceOfMatcher
,NotMatcher
,ScopeMatcher
,UsernameMatcher
Something that matches credentials. Best practice is to
- Also implement
CredentialsMatcher.CQL
and return a description of the matcher logic using the CQL syntax detailed inCredentialsMatchers.describe(CredentialsMatcher)
- Implement
Object.toString()
- Implement
Object.equals(Object)
andObject.hashCode()
- Define a
serialVersionUID
field to ensure consistent serialization
- Since:
- 1.5
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A mix-in interface to allow describing a credentials matcher. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(Credentials item) Evaluates the matcher for the specified credentials.
-
Method Details
-
matches
Evaluates the matcher for the specified credentials.- Parameters:
item
- the specified credentials.- Returns:
true
if and only if the specified credentials match.
-