Class AccessToken
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.verify.v2.service.AccessToken
-
- All Implemented Interfaces:
Serializable
public class AccessToken extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AccessToken.FactorTypes
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccessTokenCreator
creator(String pathServiceSid, String identity, AccessToken.FactorTypes factorType)
boolean
equals(Object o)
static AccessTokenFetcher
fetcher(String pathServiceSid, String pathSid)
static AccessToken
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a AccessToken object using the provided ObjectMapper.static AccessToken
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a AccessToken object using the provided ObjectMapper.String
getAccountSid()
ZonedDateTime
getDateCreated()
String
getEntityIdentity()
String
getFactorFriendlyName()
AccessToken.FactorTypes
getFactorType()
String
getServiceSid()
String
getSid()
String
getToken()
Integer
getTtl()
URI
getUrl()
int
hashCode()
-
-
-
Method Detail
-
creator
public static AccessTokenCreator creator(String pathServiceSid, String identity, AccessToken.FactorTypes factorType)
-
fetcher
public static AccessTokenFetcher fetcher(String pathServiceSid, String pathSid)
-
fromJson
public static AccessToken fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a AccessToken object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- AccessToken object represented by the provided JSON
-
fromJson
public static AccessToken fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a AccessToken object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- AccessToken object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getEntityIdentity
public final String getEntityIdentity()
-
getFactorType
public final AccessToken.FactorTypes getFactorType()
-
getFactorFriendlyName
public final String getFactorFriendlyName()
-
getToken
public final String getToken()
-
getUrl
public final URI getUrl()
-
getTtl
public final Integer getTtl()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
-