Package com.microsoft.sqlserver.jdbc
Class SqlAuthenticationToken
java.lang.Object
com.microsoft.sqlserver.jdbc.SqlAuthenticationToken
- All Implemented Interfaces:
Serializable
Provides an implementation of a SqlAuthenticationToken
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSqlAuthenticationToken
(String accessToken, long expiresOn) Contructs a SqlAuthentication token.SqlAuthenticationToken
(String accessToken, Date expiresOn) Contructs a SqlAuthentication token. -
Method Summary
Modifier and TypeMethodDescriptionReturns the access token string.Returns the expiration date of the token.toString()
-
Constructor Details
-
SqlAuthenticationToken
Contructs a SqlAuthentication token.- Parameters:
accessToken
- The access token string.expiresOn
- The expiration date in seconds since the unix epoch.
-
SqlAuthenticationToken
Contructs a SqlAuthentication token.- Parameters:
accessToken
- The access token string.expiresOn
- The expiration date.
-
-
Method Details