Class CreateApiKeyResponse
- java.lang.Object
-
- org.elasticsearch.client.security.CreateApiKeyResponse
-
public final class CreateApiKeyResponse extends java.lang.Object
Response for create API key
-
-
Constructor Summary
Constructors Constructor Description CreateApiKeyResponse(java.lang.String name, java.lang.String id, SecureString key, java.time.Instant expiration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static CreateApiKeyResponse
fromXContent(XContentParser parser)
java.time.Instant
getExpiration()
java.lang.String
getId()
SecureString
getKey()
java.lang.String
getName()
int
hashCode()
-
-
-
Constructor Detail
-
CreateApiKeyResponse
public CreateApiKeyResponse(java.lang.String name, java.lang.String id, SecureString key, java.time.Instant expiration)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getId
public java.lang.String getId()
-
getKey
public SecureString getKey()
-
getExpiration
@Nullable public java.time.Instant getExpiration()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
fromXContent
public static CreateApiKeyResponse fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
-