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.StringgetAccessToken()java.lang.ThrowablegetException()abstract booleanisTokenValid()abstract booleanneedsRefresh()voidsetException(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)
-
-