public class IdMatcher extends Object implements CredentialsMatcher
IdCredentials
and have the specified IdCredentials.getId()
.Constructor and Description |
---|
IdMatcher(String id)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(Credentials item)
Evaluates the matcher for the specified credentials.
|
String |
toString() |
public IdMatcher(@NonNull String id)
id
- the id to match.public boolean matches(@NonNull Credentials item)
matches
in interface CredentialsMatcher
item
- the specified credentials.true
if and only if the specified credentials match.Copyright © 2016. All rights reserved.