Class CreateTokenResponse
- java.lang.Object
-
- org.elasticsearch.client.security.CreateTokenResponse
-
public final class CreateTokenResponse extends Object
Response when creating a new OAuth2 token in the Elasticsearch cluster. Contains an access token, the token's expiry, and an optional refresh token.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CreateTokenResponsefromXContent(XContentParser parser)StringgetAccessToken()TimeValuegetExpiresIn()StringgetKerberosAuthenticationResponseToken()StringgetRefreshToken()StringgetScope()StringgetType()inthashCode()
-
-
-
Method Detail
-
getAccessToken
public String getAccessToken()
-
getType
public String getType()
-
getExpiresIn
public TimeValue getExpiresIn()
-
getScope
public String getScope()
-
getRefreshToken
public String getRefreshToken()
-
getKerberosAuthenticationResponseToken
public String getKerberosAuthenticationResponseToken()
-
fromXContent
public static CreateTokenResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
-