Package org.apache.sshd.common.auth
Interface UsernameHolder
- All Known Subinterfaces:
BasicCredentialsProvider,ClientSession,MutableBasicCredentials,MutableUserHolder,ServerSession,Session,SessionContext,UserAuth
- All Known Implementing Classes:
AbstractClientSession,AbstractServerSession,AbstractSession,AbstractUserAuth,BasicCredentialsImpl,ClientSessionImpl,DefaultAuthorizedKeysAuthenticator,HostConfigEntry,ScpLocation,ServerSessionImpl,SessionHelper,UserAuthGSS,UserAuthHostBased,UserAuthKeyboardInteractive,UserAuthNone,UserAuthPassword,UserAuthPublicKey
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
-
Method Details
-
getUsername
String getUsername()- Returns:
- The attached username - may be
null/empty if holder not yet initialized
-