public interface StorageAuthenticator
An adapter class StorageAuthAdapter
is provided for the convenience of implementers.
Modifier and Type | Method and Description |
---|---|
void |
getCredential()
This method is implemented by subclasses to obtain the authentication credentials from the system or user.
|
void |
getCredential(java.lang.String prompt)
This method is implemented by subclasses to obtain the authentication credentials from the system or user.
|
java.lang.String |
getPassword()
Returns the password.
|
java.lang.String |
getUsername()
Returns the username.
|
void getCredential() throws StorageAuthenticationException
StorageAuthenticationException
void getCredential(java.lang.String prompt) throws StorageAuthenticationException
prompt
- A string prompt for user interaction.StorageAuthenticationException
java.lang.String getUsername() throws StorageAuthenticationException
StorageAuthenticationException
java.lang.String getPassword() throws StorageAuthenticationException
StorageAuthenticationException