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)Constructs a SqlAuthentication token.SqlAuthenticationToken(String accessToken, Date expiresOn)Constructs a SqlAuthentication token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccessToken()Returns the access token string.DategetExpiresOn()Returns the expiration date of the token.StringtoString()
-
-
-
Constructor Detail
-
SqlAuthenticationToken
public SqlAuthenticationToken(String accessToken, long expiresOn)
Constructs a SqlAuthentication token.- Parameters:
accessToken- The access token string.expiresOn- The expiration date in milliseconds since the unix epoch.
-
-