Class TokenAPI
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.users.TokenAPI
Describes a REST API to acquire a token
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare 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 etcReturn the request body properties to use when issuing a REST call to get a token.Return mapping from secret name to response property name.getURL()Return the URL to use when issuing a REST call to get a token.inthashCode()Hash of propertiesvoidsetContentType(String contentType) Set up the content type for the API - default is "application/json"voidsetHttpRequestType(String httpRequestType) Set up the HTTP request type for the Token API: GET, POST etcvoidsetRequestBody(Map<String, Object> requestBody) Set up the request body properties to use when issuing a REST call to get a token.voidsetResponseBodyMapping(Map<String, String> responseBodyMapping) Set up mapping from secret name to response property name.voidSet up the URL to use when issuing a REST call to get a token.toString()Standard toString method.
-
Constructor Details
-
TokenAPI
public TokenAPI()Default constructor
-
-
Method Details
-
getHttpRequestType
Return the HTTP request type for the Token API: GET, POST etc- Returns:
- string
-
setHttpRequestType
Set up the HTTP request type for the Token API: GET, POST etc- Parameters:
httpRequestType- string
-
getContentType
Return the content type for the API.- Returns:
- content type
-
setContentType
Set up the content type for the API - default is "application/json"- Parameters:
contentType- MIME content type
-
getURL
Return the URL to use when issuing a REST call to get a token.- Returns:
- string URL
-
setURL
Set up the URL to use when issuing a REST call to get a token.- Parameters:
url- string URL
-
getRequestBody
Return the request body properties to use when issuing a REST call to get a token.- Returns:
- JSON Structure as a map
-
setRequestBody
Set up the request body properties to use when issuing a REST call to get a token.- Parameters:
requestBody- JSON Structure as a map
-
getResponseBodyMapping
Return mapping from secret name to response property name.- Returns:
- map
-
setResponseBodyMapping
Set up mapping from secret name to response property name.- Parameters:
responseBodyMapping- map
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Hash of properties
-