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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
hashCode()
void
setPassword
(String password) void
setUsername
(String username)
-
Field Details
-
username
-
password
-
-
Constructor Details
-
BasicCredentialsImpl
public BasicCredentialsImpl() -
BasicCredentialsImpl
-
-
Method Details
-
getUsername
- Specified by:
getUsername
in interfaceUsernameHolder
- Returns:
- The attached username - may be
null
/empty if holder not yet initialized
-
setUsername
- Specified by:
setUsername
in interfaceMutableUserHolder
-
getPassword
- Specified by:
getPassword
in interfacePasswordHolder
-
setPassword
- Specified by:
setPassword
in interfaceMutablePassword
-
clone
-
hashCode
public int hashCode() -
equals
-