Package com.ibm.cloud.sdk.core.security
Class AbstractToken
- java.lang.Object
-
- com.ibm.cloud.sdk.core.security.AbstractToken
-
-
Constructor Summary
Constructors Constructor Description AbstractToken()
AbstractToken(java.lang.Throwable t)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
getAccessToken()
java.lang.Throwable
getException()
abstract boolean
isTokenValid()
abstract boolean
needsRefresh()
void
setException(java.lang.Throwable exception)
-
-
-
Method Detail
-
isTokenValid
public abstract boolean isTokenValid()
-
needsRefresh
public abstract boolean needsRefresh()
-
getAccessToken
public abstract java.lang.String getAccessToken()
-
getException
public java.lang.Throwable getException()
-
setException
public void setException(java.lang.Throwable exception)
-
-