public class UsernameMatcher extends Object implements CredentialsMatcher
UsernameCredentials and have the specified UsernameCredentials.getUsername()| Constructor and Description |
|---|
UsernameMatcher(String username)
Constructs a new instance.
|
public UsernameMatcher(@NonNull
String username)
username - the username to match.public boolean matches(@NonNull
Credentials item)
matches in interface CredentialsMatcheritem - the specified credentials.true if and only if the specified credentials match.Copyright © 2004-2014. All Rights Reserved.