Class ExternalOAuthImpl

java.lang.Object
com.commercetools.api.models.project.ExternalOAuthImpl
All Implemented Interfaces:
ExternalOAuth, io.vrap.rmf.base.client.ModelBase

public class ExternalOAuthImpl extends Object implements ExternalOAuth, io.vrap.rmf.base.client.ModelBase

Represents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint. For more information, see Requesting an access token using an external OAuth 2.0 server.

You can only configure one external OAuth 2.0 endpoint per Project. To authenticate using multiple external services (such as social network logins), use a middle layer authentication service.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Must not contain any leading or trailing whitespaces.
    URL with authorization header.
    int
     
    void
    setAuthorizationHeader(String authorizationHeader)
    Must not contain any leading or trailing whitespaces.
    void
    URL with authorization header.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.commercetools.api.models.project.ExternalOAuth

    withExternalOAuth

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

  • Method Details

    • getUrl

      public String getUrl()

      URL with authorization header. If the Project is hosted in the China (AWS, Ningxia) Region, verify that the URL is not blocked due to firewall restrictions.

      Specified by:
      getUrl in interface ExternalOAuth
      Returns:
      url
    • getAuthorizationHeader

      Must not contain any leading or trailing whitespaces. Partially hidden on retrieval.

      Specified by:
      getAuthorizationHeader in interface ExternalOAuth
      Returns:
      authorizationHeader
    • setUrl

      public void setUrl(String url)
      Description copied from interface: ExternalOAuth

      URL with authorization header. If the Project is hosted in the China (AWS, Ningxia) Region, verify that the URL is not blocked due to firewall restrictions.

      Specified by:
      setUrl in interface ExternalOAuth
      Parameters:
      url - value to be set
    • setAuthorizationHeader

      public void setAuthorizationHeader(String authorizationHeader)
      Description copied from interface: ExternalOAuth

      Must not contain any leading or trailing whitespaces. Partially hidden on retrieval.

      Specified by:
      setAuthorizationHeader in interface ExternalOAuth
      Parameters:
      authorizationHeader - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object