java.lang.Object
org.elasticsearch.xpack.core.security.EnrollmentToken
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.elasticsearch.xcontent.ConstructingObjectParser<EnrollmentToken, Void> -
Constructor Summary
ConstructorsConstructorDescriptionEnrollmentToken(String apiKey, String fingerprint, List<String> boundAddress) Create an EnrollmentToken -
Method Summary
Modifier and TypeMethodDescriptionstatic EnrollmentTokendecodeFromString(String encoded) Decodes and parses an enrollment token from its serialized form (created withgetEncoded()booleangetRaw()inthashCode()
-
Field Details
-
CURRENT_TOKEN_VERSION
- See Also:
-
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<EnrollmentToken,Void> PARSER
-
-
Constructor Details
-
EnrollmentToken
Create an EnrollmentToken- Parameters:
apiKey- API Key credential in the form apiKeyId:ApiKeySecret to be used for enroll callsfingerprint- hex encoded SHA256 fingerprint of the HTTP CA certboundAddress- IP Addresses and port numbers for the interfaces where the Elasticsearch node is listening on
-
-
Method Details
-
getApiKey
-
getFingerprint
-
getVersion
-
getBoundAddress
-
getRaw
- Throws:
Exception
-
getEncoded
- Throws:
Exception
-
decodeFromString
Decodes and parses an enrollment token from its serialized form (created withgetEncoded()- Parameters:
encoded- The Base64 encoded JSON representation of the enrollment token- Returns:
- the parsed EnrollmentToken
- Throws:
IOException- when failing to decode the serialized token
-
equals
-
hashCode
public int hashCode()
-