java.lang.Object
org.odpi.openmetadata.adapters.connectors.secretsstore.yaml.secretsstore.TokenAPI

public class TokenAPI extends Object
Describes a REST API to acquire a token
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return the content type for the API.
    Return the HTTP request type for the Token API: GET, POST etc
    Return the request body properties to use when issuing a REST call to get a token.
    Return the URL to use when issuing a REST call to get a token.
    int
    Hash of properties
    void
    setContentType(String contentType)
    Set up the content type for the API - default is "application/json"
    void
    setHttpRequestType(String httpRequestType)
    Set up the HTTP request type for the Token API: GET, POST etc
    void
    Set up the request body properties to use when issuing a REST call to get a token.
    void
    Set up the URL to use when issuing a REST call to get a token.
    Standard toString method.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TokenAPI

      public TokenAPI()
      Default constructor
  • Method Details

    • getHttpRequestType

      public String getHttpRequestType()
      Return the HTTP request type for the Token API: GET, POST etc
      Returns:
      string
    • setHttpRequestType

      public void setHttpRequestType(String httpRequestType)
      Set up the HTTP request type for the Token API: GET, POST etc
      Parameters:
      httpRequestType - string
    • getContentType

      public String getContentType()
      Return the content type for the API.
      Returns:
      content type
    • setContentType

      public void setContentType(String contentType)
      Set up the content type for the API - default is "application/json"
      Parameters:
      contentType - MIME content type
    • getURL

      public String getURL()
      Return the URL to use when issuing a REST call to get a token.
      Returns:
      string URL
    • setURL

      public void setURL(String url)
      Set up the URL to use when issuing a REST call to get a token.
      Parameters:
      url - string URL
    • getRequestBody

      public Map<String,Object> getRequestBody()
      Return the request body properties to use when issuing a REST call to get a token.
      Returns:
      JSON Structure as a map
    • setRequestBody

      public void setRequestBody(Map<String,Object> requestBody)
      Set up the request body properties to use when issuing a REST call to get a token.
      Parameters:
      requestBody - JSON Structure as a map
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class Object
      Returns:
      int