Module com.microsoft.sqlserver.jdbc
Package com.microsoft.sqlserver.jdbc
Class SqlAuthenticationToken
- java.lang.Object
-
- com.microsoft.sqlserver.jdbc.SqlAuthenticationToken
-
- All Implemented Interfaces:
Serializable
public class SqlAuthenticationToken extends Object implements Serializable
Provides an implementation of a SqlAuthenticationToken- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqlAuthenticationToken(String accessToken, long expiresOn)
Contructs a SqlAuthentication token.SqlAuthenticationToken(String accessToken, Date expiresOn)
Contructs a SqlAuthentication token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessToken()
Returns the access token string.Date
getExpiresOn()
Returns the expiration date of the token.String
toString()
-
-
-
Constructor Detail
-
SqlAuthenticationToken
public SqlAuthenticationToken(String accessToken, long expiresOn)
Contructs a SqlAuthentication token.- Parameters:
accessToken
- The access token string.expiresOn
- The expiration date in seconds since the unix epoch.
-
-