Module org.elasticsearch.xcore
Class ApiKey
java.lang.Object
org.elasticsearch.xpack.core.security.action.apikey.ApiKey
- All Implemented Interfaces:
ToXContent,ToXContentObject
API key information
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic classNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionApiKey(String name, String id, ApiKey.Type type, Instant creation, Instant expiration, boolean invalidated, Instant invalidation, String username, String realm, String realmType, Map<String, Object> metadata, List<RoleDescriptor> roleDescriptors, List<RoleDescriptor> limitedByRoleDescriptors, String certificateIdentity) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ApiKeyfromXContent(XContentParser parser) getId()getName()getRealm()getType()inthashCode()innerToXContent(XContentBuilder builder, ToXContent.Params params) booleantoString()toXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
CURRENT_API_KEY_VERSION
-
-
Constructor Details
-
ApiKey
public ApiKey(String name, String id, ApiKey.Type type, Instant creation, Instant expiration, boolean invalidated, @Nullable Instant invalidation, String username, String realm, @Nullable String realmType, @Nullable Map<String, Object> metadata, @Nullable List<RoleDescriptor> roleDescriptors, @Nullable List<RoleDescriptor> limitedByRoleDescriptors, @Nullable String certificateIdentity)
-
-
Method Details
-
getId
-
getName
-
getType
-
getCreation
-
getExpiration
-
isInvalidated
public boolean isInvalidated() -
getInvalidation
-
getUsername
-
getRealm
-
getRealmType
-
getRealmIdentifier
-
getMetadata
-
getRoleDescriptors
-
getLimitedBy
-
getCertificateIdentity
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
innerToXContent
public XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-
fromXContent
- Throws:
IOException
-