Class GoogleAnalyticsConnectorProfileCredentials

    • Method Detail

      • clientId

        public final String clientId()

        The identifier for the desired client.

        Returns:
        The identifier for the desired client.
      • clientSecret

        public final String clientSecret()

        The client secret used by the OAuth client to authenticate to the authorization server.

        Returns:
        The client secret used by the OAuth client to authenticate to the authorization server.
      • accessToken

        public final String accessToken()

        The credentials used to access protected Google Analytics resources.

        Returns:
        The credentials used to access protected Google Analytics resources.
      • refreshToken

        public final String refreshToken()

        The credentials used to acquire new access tokens. This is required only for OAuth2 access tokens, and is not required for OAuth1 access tokens.

        Returns:
        The credentials used to acquire new access tokens. This is required only for OAuth2 access tokens, and is not required for OAuth1 access tokens.
      • oAuthRequest

        public final ConnectorOAuthRequest oAuthRequest()

        The OAuth requirement needed to request security tokens from the connector endpoint.

        Returns:
        The OAuth requirement needed to request security tokens from the connector endpoint.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)