Interface BasicAuthCredentialStore
-
- All Implemented Interfaces:
public interface BasicAuthCredentialStoreThis interface is used by BasicAuthDialogAuthenticator to store Basic Auth credentials to reuse on future challenges.
-
-
Method Summary
Modifier and Type Method Description abstract voidstoreCredential(@NonNull() String rootUrl, @NonNull() String realm, @NonNull() Array<String> credentials)Stores credentials for future use. abstract Array<String>getCredential(@NonNull() String rootUrl, @NonNull() String realm)Gets stored credentials for reuse. abstract voiddeleteCredential(@NonNull() String rootUrl, @NonNull() String realm)Deletes the stored credentials for a given root URL and realm. abstract voiddeleteAllCredentials()Deletes all stored credentials. -
-
Method Detail
-
storeCredential
abstract void storeCredential(@NonNull() String rootUrl, @NonNull() String realm, @NonNull() Array<String> credentials)
Stores credentials for future use.
- Parameters:
rootUrl- The root URL for which the credentials should be used for.realm- The realm for which the credentials should be used for.credentials- This array should have a length of 2.
-
getCredential
@Nullable() abstract Array<String> getCredential(@NonNull() String rootUrl, @NonNull() String realm)
Gets stored credentials for reuse.
- Parameters:
rootUrl- The root URL for which the credentials are being requested for.realm- The realm for which the credentials are being requested for.- Returns:
The stored credentials or null if none are stored for the given rootUrl and realm.
-
deleteCredential
abstract void deleteCredential(@NonNull() String rootUrl, @NonNull() String realm)
Deletes the stored credentials for a given root URL and realm.
- Parameters:
rootUrl- The rootUrl for which the credentials should be deleted.realm- The realm for which the credentials should be deleted.
-
deleteAllCredentials
abstract void deleteAllCredentials()
Deletes all stored credentials.
-
-
-
-