Package org.jclouds.rest.config
Class CredentialStoreModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.rest.config.CredentialStoreModule
-
- All Implemented Interfaces:
com.google.inject.Module
@Beta public class CredentialStoreModule extends com.google.inject.AbstractModule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CredentialStoreModule.CredentialsFromJsonByteSource
static class
CredentialStoreModule.CredentialsToJsonByteSource
-
Constructor Summary
Constructors Constructor Description CredentialStoreModule()
CredentialStoreModule(Map<String,com.google.common.io.ByteSource> backing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
protected Map<String,Credentials>
provideCredentialStore(Map<String,com.google.common.io.ByteSource> backing, com.google.common.base.Function<Credentials,com.google.common.io.ByteSource> credentialsSerializer, com.google.common.base.Function<com.google.common.io.ByteSource,Credentials> credentialsDeserializer)
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
configure
protected void configure()
- Overrides:
configure
in classcom.google.inject.AbstractModule
-
provideCredentialStore
@Provides @Singleton protected final Map<String,Credentials> provideCredentialStore(Map<String,com.google.common.io.ByteSource> backing, com.google.common.base.Function<Credentials,com.google.common.io.ByteSource> credentialsSerializer, com.google.common.base.Function<com.google.common.io.ByteSource,Credentials> credentialsDeserializer)
-
-