Package com.abiquo.apiclient.auth
Class BasicAuthentication
- java.lang.Object
-
- com.abiquo.apiclient.auth.BasicAuthentication
-
- All Implemented Interfaces:
Authentication
public class BasicAuthentication extends Object implements Authentication
HTTP Basic Authentication.- Author:
- Ignasi Barrera
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.squareup.okhttp.Requestauthenticate(com.squareup.okhttp.Request unauthenticated)Authenticates the given request.static BasicAuthenticationbasic(String username, String password)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.abiquo.apiclient.auth.Authentication
allowAbiquoToken
-
-
-
-
Method Detail
-
basic
public static BasicAuthentication basic(String username, String password)
-
authenticate
public com.squareup.okhttp.Request authenticate(com.squareup.okhttp.Request unauthenticated)
Description copied from interface:AuthenticationAuthenticates the given request.- Specified by:
authenticatein interfaceAuthentication- Parameters:
unauthenticated- The request to authenticate.- Returns:
- The authenticated request.
-
-