Class FixedCredentialsProvider

  • All Implemented Interfaces:
    CredentialsProvider

    public abstract class FixedCredentialsProvider
    extends Object
    implements CredentialsProvider
    FixedCredentialsProvider is a CredentialsProvider which always provides the same credentials.
    • Constructor Detail

      • FixedCredentialsProvider

        public FixedCredentialsProvider()
    • Method Detail

      • getCredentials

        @Nullable
        public abstract com.google.auth.Credentials getCredentials()
        Description copied from interface: CredentialsProvider
        Gets the credentials which will be used to call the service. If the credentials have not been acquired yet, then they will be acquired when this function is called.
        Specified by:
        getCredentials in interface CredentialsProvider
      • create

        public static FixedCredentialsProvider create​(com.google.auth.Credentials credentials)
        Creates a FixedCredentialsProvider.