Class BasicAuthenticator
- java.lang.Object
-
- org.vx68k.bitbucket.api.client.internal.BasicAuthenticator
-
- All Implemented Interfaces:
ClientRequestFilter
public final class BasicAuthenticator extends Object implements ClientRequestFilter
Basic authenticator.- Since:
- 5.0
- Author:
- Kaz Nishimura
-
-
Constructor Summary
Constructors Constructor Description BasicAuthenticator()Initializes the object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(ClientRequestContext requestContext)StringgetUsername()Returns the username.voidsetPassword(String newValue)Sets the password.voidsetUsername(String newValue)Sets the username.
-
-
-
Method Detail
-
getUsername
public String getUsername()
Returns the username.- Returns:
- the username
-
setUsername
public void setUsername(String newValue)
Sets the username.- Parameters:
newValue- a new value of the username
-
setPassword
public void setPassword(String newValue)
Sets the password.- Parameters:
newValue- a new value of the password
-
filter
public void filter(ClientRequestContext requestContext) throws IOException
- Specified by:
filterin interfaceClientRequestFilter- Throws:
IOException
-
-