public abstract class StorageAuthAdapter extends java.lang.Object implements StorageAuthenticator
| Modifier | Constructor and Description |
|---|---|
protected |
StorageAuthAdapter() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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.
|
public abstract void getCredential()
throws StorageAuthenticationException
getCredential in interface StorageAuthenticatorStorageAuthenticationExceptionpublic void getCredential(java.lang.String prompt)
throws StorageAuthenticationException
getCredential().getCredential in interface StorageAuthenticatorprompt - A string prompt for user interaction.StorageAuthenticationExceptionpublic java.lang.String getUsername()
throws StorageAuthenticationException
StorageAuthenticationException.getUsername in interface StorageAuthenticatorStorageAuthenticationExceptionpublic java.lang.String getPassword()
throws StorageAuthenticationException
StorageAuthenticationException.getPassword in interface StorageAuthenticatorStorageAuthenticationException