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 UsernameHoldernull/empty if holder not yet initializedpublic void setUsername(String username)
setUsername in interface MutableUserHolderpublic String getPassword()
getPassword in interface PasswordHolderpublic void setPassword(String password)
setPassword in interface MutablePasswordpublic BasicCredentialsImpl clone()
Copyright © 2018–2020 The Apache Software Foundation. All rights reserved.