Class PublicKey
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.accounts.v1.credential.PublicKey
-
- All Implemented Interfaces:
Serializable
public class PublicKey extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeyCreatorcreator(String publicKey)static PublicKeyDeleterdeleter(String pathSid)booleanequals(Object o)static PublicKeyFetcherfetcher(String pathSid)static PublicKeyfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a PublicKey object using the provided ObjectMapper.static PublicKeyfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a PublicKey object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()StringgetSid()URIgetUrl()inthashCode()static PublicKeyReaderreader()static PublicKeyUpdaterupdater(String pathSid)
-
-
-
Method Detail
-
creator
public static PublicKeyCreator creator(String publicKey)
-
fetcher
public static PublicKeyFetcher fetcher(String pathSid)
-
deleter
public static PublicKeyDeleter deleter(String pathSid)
-
reader
public static PublicKeyReader reader()
-
updater
public static PublicKeyUpdater updater(String pathSid)
-
fromJson
public static PublicKey fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a PublicKey object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- PublicKey object represented by the provided JSON
-
fromJson
public static PublicKey fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a PublicKey object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- PublicKey object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getFriendlyName
public final String getFriendlyName()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-