Class OAuthCredentials

    • 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 access token used to access protected SAPOData resources.

        Returns:
        The access token used to access protected SAPOData resources.
      • refreshToken

        public final String refreshToken()

        The refresh token used to refresh expired access token.

        Returns:
        The refresh token used to refresh expired access token.
      • 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)