Class CreateApiKeyResponse
- java.lang.Object
-
- org.elasticsearch.client.security.CreateApiKeyResponse
-
public final class CreateApiKeyResponse extends Object
Response for create API key
-
-
Constructor Summary
Constructors Constructor Description CreateApiKeyResponse(String name, String id, SecureString key, Instant expiration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static CreateApiKeyResponsefromXContent(XContentParser parser)InstantgetExpiration()StringgetId()SecureStringgetKey()StringgetName()inthashCode()
-
-
-
Constructor Detail
-
CreateApiKeyResponse
public CreateApiKeyResponse(String name, String id, SecureString key, Instant expiration)
-
-
Method Detail
-
getName
public String getName()
-
getId
public String getId()
-
getKey
public SecureString getKey()
-
fromXContent
public static CreateApiKeyResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
-