Class DownscopedCredentials.Builder

    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • setSourceCredential

        @CanIgnoreReturnValue
        public DownscopedCredentials.Builder setSourceCredential​(GoogleCredentials sourceCredential)
        Sets the required source credential used to acquire the downscoped credential.
        Parameters:
        sourceCredential - the GoogleCredentials to set
        Returns:
        this Builder object
      • setCredentialAccessBoundary

        @CanIgnoreReturnValue
        public DownscopedCredentials.Builder setCredentialAccessBoundary​(CredentialAccessBoundary credentialAccessBoundary)
        Sets the required credential access boundary which specifies the upper bound of permissions that the credential can access. See CredentialAccessBoundary for more information.
        Parameters:
        credentialAccessBoundary - the CredentialAccessBoundary to set
        Returns:
        this Builder object
      • setHttpTransportFactory

        @CanIgnoreReturnValue
        public DownscopedCredentials.Builder setHttpTransportFactory​(HttpTransportFactory transportFactory)
        Sets the HTTP transport factory.
        Parameters:
        transportFactory - the HttpTransportFactory to set
        Returns:
        this Builder object
      • setUniverseDomain

        @CanIgnoreReturnValue
        public DownscopedCredentials.Builder setUniverseDomain​(java.lang.String universeDomain)
        Sets the optional universe domain.
        Parameters:
        universeDomain - the universe domain to set
        Returns:
        this Builder object