Package org.apache.sshd.common.auth
Class BasicCredentialsImpl
- java.lang.Object
-
- org.apache.sshd.common.auth.BasicCredentialsImpl
-
- All Implemented Interfaces:
Cloneable
,BasicCredentialsProvider
,MutableBasicCredentials
,MutablePassword
,MutableUserHolder
,PasswordHolder
,UsernameHolder
public class BasicCredentialsImpl extends Object implements MutableBasicCredentials, Cloneable
- Author:
- Apache MINA SSHD Project
-
-
Constructor Summary
Constructors Constructor Description BasicCredentialsImpl()
BasicCredentialsImpl(String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicCredentialsImpl
clone()
boolean
equals(Object obj)
String
getPassword()
String
getUsername()
int
hashCode()
void
setPassword(String password)
void
setUsername(String username)
-
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceUsernameHolder
- Returns:
- The attached username - may be
null
/empty if holder not yet initialized
-
setUsername
public void setUsername(String username)
- Specified by:
setUsername
in interfaceMutableUserHolder
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfacePasswordHolder
-
setPassword
public void setPassword(String password)
- Specified by:
setPassword
in interfaceMutablePassword
-
clone
public BasicCredentialsImpl clone()
-
-