Package com.ngrok.definitions
Class ApiKey
java.lang.Object
com.ngrok.definitions.ApiKey
A class encapsulating the
ApiKey
resource.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
timestamp when the api key was created, RFC 3339 formathuman-readable description of what uses the API key to authenticate.getId()
unique API key resource identifierarbitrary user-defined data of this API key.getToken()
the bearer token that can be placed into the Authorization header to authenticate request to the ngrok API.getUri()
URI to the API resource of this API keyint
hashCode()
toString()
-
Constructor Details
-
ApiKey
public ApiKey(String id, URI uri, String description, String metadata, OffsetDateTime createdAt, Optional<String> token) Creates a new instance ofApiKey
.- Parameters:
id
- unique API key resource identifieruri
- URI to the API resource of this API keydescription
- human-readable description of what uses the API key to authenticate. optional, max 255 bytes.metadata
- arbitrary user-defined data of this API key. optional, max 4096 bytescreatedAt
- timestamp when the api key was created, RFC 3339 formattoken
- the bearer token that can be placed into the Authorization header to authenticate request to the ngrok API. This value is only available one time, on the API response from key creation. Otherwise it is null.
-
-
Method Details
-
getId
unique API key resource identifier- Returns:
- the value of the property as a
String
-
getUri
URI to the API resource of this API key- Returns:
- the value of the property as a
URI
-
getDescription
human-readable description of what uses the API key to authenticate. optional, max 255 bytes.- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined data of this API key. optional, max 4096 bytes- Returns:
- the value of the property as a
String
-
getCreatedAt
timestamp when the api key was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getToken
the bearer token that can be placed into the Authorization header to authenticate request to the ngrok API. This value is only available one time, on the API response from key creation. Otherwise it is null. -
equals
-
hashCode
public int hashCode() -
toString
-