Package io.continual.iam.impl.common
Class CommonJsonApiKey
- java.lang.Object
-
- io.continual.iam.impl.common.CommonJsonApiKey
-
-
Constructor Summary
Constructors Constructor Description CommonJsonApiKey(String id, org.json.JSONObject record)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCreationTimestamp()Get the creation timestampStringgetKey()Get the API key part.StringgetSecret()Get the API key's secret part.StringgetUserId()Get the user associated with this key.static org.json.JSONObjectinitialize(String secret, String userId)
-
-
-
Constructor Detail
-
CommonJsonApiKey
public CommonJsonApiKey(String id, org.json.JSONObject record)
-
-
Method Detail
-
getSecret
public String getSecret()
Description copied from interface:ApiKeyGet the API key's secret part.
-
getUserId
public String getUserId()
Description copied from interface:ApiKeyGet the user associated with this key.
-
getCreationTimestamp
public long getCreationTimestamp()
Description copied from interface:ApiKeyGet the creation timestamp- Specified by:
getCreationTimestampin interfaceApiKey- Returns:
- the API creation timestamp
-
-