Class ApiKey
java.lang.Object
org.elasticsearch.client.security.support.ApiKey
API key information
-
Constructor Details
-
ApiKey
-
-
Method Details
-
getId
-
getName
-
getCreation
- Returns:
- a instance of
Instant
when this API key was created.
-
getExpiration
- Returns:
- a instance of
Instant
when this API key will expire. In case the API key does not expire then will returnnull
-
isInvalidated
public boolean isInvalidated()- Returns:
true
if this API key has been invalidated else returnsfalse
-
getUsername
- Returns:
- the username for which this API key was created.
-
getRealm
- Returns:
- the realm name of the user for which this API key was created.
-
getMetadata
-
hashCode
public int hashCode() -
equals
-
fromXContent
public static ApiKey fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
toString
-