Class CouchDbSessionAuthenticator.CouchDbSessionToken

java.lang.Object
com.ibm.cloud.sdk.core.security.AbstractToken
com.ibm.cloud.cloudant.security.CouchDbSessionAuthenticator.CouchDbSessionToken
All Implemented Interfaces:
com.ibm.cloud.sdk.core.security.TokenServerResponse
Enclosing class:
CouchDbSessionAuthenticator

public static class CouchDbSessionAuthenticator.CouchDbSessionToken extends com.ibm.cloud.sdk.core.security.AbstractToken implements com.ibm.cloud.sdk.core.security.TokenServerResponse
Implements TokenServerResponse for an Apache CouchDB session cookie.
  • Field Details

    • expiryTime

      public final long expiryTime
    • refreshTime

      public final long refreshTime
  • Constructor Details

    • CouchDbSessionToken

      public CouchDbSessionToken(long expiryTime)
      Constructor for a known expiry time.
      Parameters:
      expiryTime - time since epoch that represents the expiry time of this cookie token
  • Method Details

    • isTokenValid

      public boolean isTokenValid()
      Specified by:
      isTokenValid in class com.ibm.cloud.sdk.core.security.AbstractToken
    • needsRefresh

      public boolean needsRefresh()
      Specified by:
      needsRefresh in class com.ibm.cloud.sdk.core.security.AbstractToken
    • getAccessToken

      public String getAccessToken()
      Specified by:
      getAccessToken in class com.ibm.cloud.sdk.core.security.AbstractToken