Class BasicAuthInMemoryStore

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      synchronized void storeCredential(@NonNull() String rootUrl, @NonNull() String realm, @NonNull() Array<String> credentials) Stores credentials for future use.
      synchronized Array<String> getCredential(@NonNull() String rootUrl, @NonNull() String realm) Gets stored credentials for reuse.
      synchronized void deleteCredential(@NonNull() String rootUrl, @NonNull() String realm) Deletes the stored credentials for a given root URL and realm.
      synchronized void deleteAllCredentials() Deletes all stored credentials.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicAuthInMemoryStore

        BasicAuthInMemoryStore()
    • Method Detail

      • storeCredential

         synchronized 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() synchronized 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.
      • deleteCredential

         synchronized 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.