Class CredentialStoreModule

  • All Implemented Interfaces:
    com.google.inject.Module

    @Beta
    public class CredentialStoreModule
    extends com.google.inject.AbstractModule
    • Constructor Detail

      • CredentialStoreModule

        public CredentialStoreModule​(Map<String,​com.google.common.io.ByteSource> backing)
      • CredentialStoreModule

        public CredentialStoreModule()
    • Method Detail

      • configure

        protected void configure()
        Overrides:
        configure in class com.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)