@Singleton public class AbiquoAuthentication extends Object implements HttpRequestFilter
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_TOKEN_NAME
The name of the authentication token.
|
protected boolean |
credentialIsToken |
protected com.google.common.base.Supplier<Credentials> |
creds |
Constructor and Description |
---|
AbiquoAuthentication(com.google.common.base.Supplier<Credentials> creds,
boolean credentialIsToken) |
public static final String AUTH_TOKEN_NAME
protected com.google.common.base.Supplier<Credentials> creds
protected boolean credentialIsToken
@Inject public AbiquoAuthentication(com.google.common.base.Supplier<Credentials> creds, @Named(value="abiquo.credential-is-token") boolean credentialIsToken)
public HttpRequest filter(HttpRequest request) throws HttpException
filter
in interface HttpRequestFilter
HttpException
Copyright © 2009-2013 jclouds. All Rights Reserved.