Module org.elasticsearch.xcore
Class ApiKey
java.lang.Object
org.elasticsearch.xpack.core.security.action.apikey.ApiKey
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
API key information
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic classNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ApiKeyfromXContent(org.elasticsearch.xcontent.XContentParser parser) getId()getName()getRealm()getType()inthashCode()org.elasticsearch.xcontent.XContentBuilderinnerToXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) booleantoString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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)
-
-
Method Details
-
getId
-
getName
-
getType
-
getCreation
-
getExpiration
-
isInvalidated
public boolean isInvalidated() -
getInvalidation
-
getUsername
-
getRealm
-
getRealmType
-
getRealmIdentifier
-
getMetadata
-
getRoleDescriptors
-
getLimitedBy
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
innerToXContent
public org.elasticsearch.xcontent.XContentBuilder innerToXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-
fromXContent
public static ApiKey fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-