Class DefaultBasicAuthCredentialsStore
java.lang.Object
com.helixframework.okhttp.basicauth.DefaultBasicAuthCredentialsStore
- All Implemented Interfaces:
BasicAuthCredentialsStore,Serializable
public class DefaultBasicAuthCredentialsStore
extends Object
implements BasicAuthCredentialsStore, Serializable
Default in-memory
BasicAuthCredentialsStore implementation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultBasicAuthCredentialsStore(String username, String password) Creates a new instance ofDefaultBasicAuthCredentialsStore. -
Method Summary
Modifier and TypeMethodDescriptionGets the password.Gets the username.voidsetPassword(String password) Sets the password.voidsetUsername(String username) Sets the username.
-
Constructor Details
-
DefaultBasicAuthCredentialsStore
Creates a new instance ofDefaultBasicAuthCredentialsStore.- Parameters:
username- usernamepassword- password
-
-
Method Details
-
getUsername
Description copied from interface:BasicAuthCredentialsStoreGets the username.- Specified by:
getUsernamein interfaceBasicAuthCredentialsStore- Returns:
- username
-
setUsername
Description copied from interface:BasicAuthCredentialsStoreSets the username.- Specified by:
setUsernamein interfaceBasicAuthCredentialsStore- Parameters:
username- username
-
getPassword
Description copied from interface:BasicAuthCredentialsStoreGets the password.- Specified by:
getPasswordin interfaceBasicAuthCredentialsStore- Returns:
- password
-
setPassword
Description copied from interface:BasicAuthCredentialsStoreSets the password.- Specified by:
setPasswordin interfaceBasicAuthCredentialsStore- Parameters:
password- password
-