类 CreateTokenResponse

java.lang.Object
org.easysearch.client.security.CreateTokenResponse

public final class CreateTokenResponse
extends java.lang.Object
Response when creating a new OAuth2 token in the Easysearch cluster. Contains an access token, the token's expiry, and an optional refresh token.
  • 构造器概要

    构造器
    构造器 说明
    CreateTokenResponse​(java.lang.String accessToken, java.lang.String type, org.easysearch.common.unit.TimeValue expiresIn, java.lang.String scope, java.lang.String refreshToken, java.lang.String kerberosAuthenticationResponseToken)  
  • 方法概要

    修饰符和类型 方法 说明
    boolean equals​(java.lang.Object o)  
    static CreateTokenResponse fromXContent​(org.easysearch.common.xcontent.XContentParser parser)  
    java.lang.String getAccessToken()  
    org.easysearch.common.unit.TimeValue getExpiresIn()  
    java.lang.String getKerberosAuthenticationResponseToken()  
    java.lang.String getRefreshToken()  
    java.lang.String getScope()  
    java.lang.String getType()  
    int hashCode()  

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • CreateTokenResponse

      public CreateTokenResponse​(java.lang.String accessToken, java.lang.String type, org.easysearch.common.unit.TimeValue expiresIn, java.lang.String scope, java.lang.String refreshToken, java.lang.String kerberosAuthenticationResponseToken)
  • 方法详细资料

    • getAccessToken

      public java.lang.String getAccessToken()
    • getType

      public java.lang.String getType()
    • getExpiresIn

      public org.easysearch.common.unit.TimeValue getExpiresIn()
    • getScope

      public java.lang.String getScope()
    • getRefreshToken

      public java.lang.String getRefreshToken()
    • getKerberosAuthenticationResponseToken

      public java.lang.String getKerberosAuthenticationResponseToken()
    • equals

      public boolean equals​(java.lang.Object o)
      覆盖:
      equals 在类中 java.lang.Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 java.lang.Object
    • fromXContent

      public static CreateTokenResponse fromXContent​(org.easysearch.common.xcontent.XContentParser parser) throws java.io.IOException
      抛出:
      java.io.IOException