Class SqlCredentialFactory

All Implemented Interfaces:

public class SqlCredentialFactory extends Object implements
Returns the credentials that are written to a system property by the Cloud SQL starter.

Since the sockets factory creates an instance of this class by reflection and without any arguments, the credential location must be in a place that this class knows without any context.

  • Field Details


      public static final String CREDENTIAL_LOCATION_PROPERTY_NAME
      the system property name for the location of the credentials.
      See Also:

      public static final String CREDENTIAL_ENCODED_KEY_PROPERTY_NAME
      the system property name for the key name.
      See Also:
  • Constructor Details

    • SqlCredentialFactory

      public SqlCredentialFactory()
  • Method Details

    • create

      public create()
      Specified by:
      create in interface
    • getCredentials

      public getCredentials()
      Specified by:
      getCredentials in interface