Interface CredentialFetcher

  • All Known Implementing Classes:
    GoogleServiceAccountCredentialFetcher
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface CredentialFetcher
    Fetches credentials for API access to Google documents.
    • Method Detail

      • getCredentials

        com.google.auth.oauth2.GoogleCredentials getCredentials()
                                                         throws IOException
        Fetch credentials.
        Returns:
        A set of credentials to access the API.
        Throws:
        IOException - If there is an exception fetching credentials.