public class BasicCredentialsImpl extends Object implements MutableBasicCredentials, Cloneable
Constructor and Description |
---|
BasicCredentialsImpl() |
BasicCredentialsImpl(String username,
String password) |
Modifier and Type | Method and Description |
---|---|
BasicCredentialsImpl |
clone() |
boolean |
equals(Object obj) |
String |
getPassword() |
String |
getUsername() |
int |
hashCode() |
void |
setPassword(String password) |
void |
setUsername(String username) |
public String getUsername()
getUsername
in interface UsernameHolder
null
/empty if holder
not yet initializedpublic void setUsername(String username)
setUsername
in interface MutableUserHolder
public String getPassword()
getPassword
in interface PasswordHolder
public void setPassword(String password)
setPassword
in interface MutablePassword
public BasicCredentialsImpl clone()
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.