Package com.databricks.sdk.core.oauth
Class Token
- java.lang.Object
-
- com.databricks.sdk.core.oauth.Token
-
public class Token extends Object
-
-
Constructor Summary
Constructors Constructor Description Token(String accessToken, String tokenType, String refreshToken, LocalDateTime expiry)
Constructor for refreshable tokens.Token(String accessToken, String tokenType, LocalDateTime expiry)
Constructor for non-refreshable tokens (e.g.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessToken()
String
getRefreshToken()
String
getTokenType()
boolean
isExpired()
boolean
isValid()
-
-
-
Constructor Detail
-
Token
public Token(String accessToken, String tokenType, LocalDateTime expiry)
Constructor for non-refreshable tokens (e.g. M2M).
-
Token
public Token(String accessToken, String tokenType, String refreshToken, LocalDateTime expiry)
Constructor for refreshable tokens.
-
-