Class CreateTokenResponse
java.lang.Object
org.elasticsearch.client.security.CreateTokenResponse
Response when creating a new OAuth2 token in the Elasticsearch cluster. Contains an access token, the token's expiry, and an optional
refresh token.
-
Constructor Summary
ConstructorDescriptionCreateTokenResponse
(String accessToken, String type, org.elasticsearch.core.TimeValue expiresIn, String scope, String refreshToken, String kerberosAuthenticationResponseToken, AuthenticateResponse authentication) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static CreateTokenResponse
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) org.elasticsearch.core.TimeValue
getScope()
getType()
int
hashCode()
-
Constructor Details
-
CreateTokenResponse
-
-
Method Details
-
getAccessToken
-
getType
-
getExpiresIn
public org.elasticsearch.core.TimeValue getExpiresIn() -
getScope
-
getRefreshToken
-
getKerberosAuthenticationResponseToken
-
getAuthentication
-
equals
-
hashCode
public int hashCode() -
fromXContent
public static CreateTokenResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-