public interface UsernamePassword
Note: implementations of this interface are not required to be thread-safe. Clients of this interface are responsible to do synchronization if required by the usage pattern.
Modifier and Type | Method and Description |
---|---|
char[] |
getPassword()
Note: to maintain the immutability of UsernamePassword, a new copy of the password character array is returned.
|
String |
getPasswordString() |
String |
getUsername() |
String getUsername()
IllegalStateException
- if this UsernamePassword has already been disposed.char[] getPassword()
IllegalStateException
- if this UsernamePassword has already been disposed.String getPasswordString()
IllegalStateException
- if this UsernamePassword has already been disposed.