Class AuthModule


  • @Module
    public class AuthModule
    extends java.lang.Object
    Module providing the dependency graph for authorization credentials.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  AuthModule.CloudSqlClientCredential
      Dagger qualifier for Credential used by the Cloud SQL client in the nomulus tool.
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthModule()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow provideAuthorizationCodeFlow​(com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets clientSecrets, com.google.common.collect.ImmutableList<java.lang.String> requiredOauthScopes, com.google.api.client.util.store.AbstractDataStoreFactory dataStoreFactory)  
      static com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets provideClientSecrets​(java.lang.String clientId, java.lang.String clientSecret, com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets.Details details)  
      static com.google.api.client.util.store.AbstractDataStoreFactory provideDataStoreFactory()  
      static GoogleCredentialsBundle provideLocalCredential​(java.lang.String credentialJson, com.google.common.collect.ImmutableList<java.lang.String> scopes)  
      static java.lang.String provideLocalCredentialJson​(dagger.Lazy<com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets> clientSecrets, dagger.Lazy<com.google.api.client.auth.oauth2.Credential> credential, java.lang.String credentialFilePath)  
      static com.google.api.client.auth.oauth2.Credential providesLocalCredentialForCloudSqlClient​(java.lang.String credentialJson, com.google.common.collect.ImmutableList<java.lang.String> credentialScopes)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthModule

        public AuthModule()
    • Method Detail

      • providesLocalCredentialForCloudSqlClient

        @Provides
        @CloudSqlClientCredential
        public static com.google.api.client.auth.oauth2.Credential providesLocalCredentialForCloudSqlClient​(@LocalCredentialJson
                                                                                                            java.lang.String credentialJson,
                                                                                                            @Config("localCredentialOauthScopes")
                                                                                                            com.google.common.collect.ImmutableList<java.lang.String> credentialScopes)
      • provideAuthorizationCodeFlow

        @Provides
        public static com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow provideAuthorizationCodeFlow​(com.google.api.client.json.JsonFactory jsonFactory,
                                                                                                                            com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets clientSecrets,
                                                                                                                            @Config("localCredentialOauthScopes")
                                                                                                                            com.google.common.collect.ImmutableList<java.lang.String> requiredOauthScopes,
                                                                                                                            com.google.api.client.util.store.AbstractDataStoreFactory dataStoreFactory)
      • provideClientSecrets

        @Provides
        public static com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets provideClientSecrets​(@Config("toolsClientId")
                                                                                                            java.lang.String clientId,
                                                                                                            @Config("toolsClientSecret")
                                                                                                            java.lang.String clientSecret,
                                                                                                            com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets.Details details)
      • provideLocalCredentialJson

        @Provides
        @LocalCredentialJson
        public static java.lang.String provideLocalCredentialJson​(dagger.Lazy<com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets> clientSecrets,
                                                                  @StoredCredential
                                                                  dagger.Lazy<com.google.api.client.auth.oauth2.Credential> credential,
                                                                  @Nullable @Config("credentialFilePath")
                                                                  java.lang.String credentialFilePath)
      • provideDataStoreFactory

        @Provides
        @Singleton
        public static com.google.api.client.util.store.AbstractDataStoreFactory provideDataStoreFactory()