Module org.elasticsearch.xcore
Class TokenMetadata
java.lang.Object
org.elasticsearch.cluster.AbstractNamedDiffable<ClusterState.Custom>
org.elasticsearch.xpack.core.security.authc.TokenMetadata
- All Implemented Interfaces:
ClusterState.Custom,Diffable<ClusterState.Custom>,NamedDiffable<ClusterState.Custom>,NamedWriteable,VersionedNamedWriteable,Writeable,ChunkedToXContent
public final class TokenMetadata
extends AbstractNamedDiffable<ClusterState.Custom>
implements ClusterState.Custom
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionTokenMetadata(List<KeyAndTimestamp> keys, byte[] currentKeyHash) TokenMetadata(StreamInput input) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getKeys()inthashCode()booleanstatic NamedDiff<ClusterState.Custom> toString()Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.cluster.AbstractNamedDiffable
diff, get, readDiffFromMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunkedV8
-
Field Details
-
TYPE
The type ofClusterStatedata.- See Also:
-
-
Constructor Details
-
TokenMetadata
-
TokenMetadata
- Throws:
IOException
-
-
Method Details
-
getKeys
-
getCurrentKeyHash
public byte[] getCurrentKeyHash() -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
readDiffFrom
- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
toXContentChunked
public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) - Specified by:
toXContentChunkedin interfaceChunkedToXContent- Specified by:
toXContentChunkedin interfaceClusterState.Custom
-
equals
-
hashCode
public int hashCode() -
toString
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivatein interfaceClusterState.Custom
-