public class AbiquoAuthenticationModule
extends com.google.inject.AbstractModule
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_TOKEN_NAME
The name of the authentication token.
|
Constructor and Description |
---|
AbiquoAuthenticationModule() |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.base.Function<Credentials,String> |
authenticationMethodForCredentialType(Map<String,com.google.common.base.Function<Credentials,String>> authenticationMethods,
String credentialType) |
protected Map<String,com.google.common.base.Function<Credentials,String>> |
authenticationMethods(GetTokenFromApi tokenFromApi,
GetTokenFromCredentials tokenFromCredentials) |
protected void |
configure() |
protected com.google.common.cache.LoadingCache<Credentials,String> |
provideTokenCache(com.google.common.base.Function<Credentials,String> getToken) |
protected com.google.common.base.Supplier<String> |
provideTokenSupplier(com.google.common.cache.LoadingCache<Credentials,String> cache,
com.google.common.base.Supplier<Credentials> creds) |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public static final String AUTH_TOKEN_NAME
@Provides @Singleton protected Map<String,com.google.common.base.Function<Credentials,String>> authenticationMethods(GetTokenFromApi tokenFromApi, GetTokenFromCredentials tokenFromCredentials)
@Provides @Singleton protected com.google.common.base.Function<Credentials,String> authenticationMethodForCredentialType(Map<String,com.google.common.base.Function<Credentials,String>> authenticationMethods, @Named(value="abiquo.credential-type") String credentialType)
@Provides @Singleton protected com.google.common.cache.LoadingCache<Credentials,String> provideTokenCache(com.google.common.base.Function<Credentials,String> getToken)
@Provides @Singleton protected com.google.common.base.Supplier<String> provideTokenSupplier(com.google.common.cache.LoadingCache<Credentials,String> cache, com.google.common.base.Supplier<Credentials> creds)
protected void configure()
configure
in class com.google.inject.AbstractModule
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.