public final class SmimeInfo extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Gmail API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SmimeInfo() |
Modifier and Type | Method and Description |
---|---|
SmimeInfo |
clone() |
byte[] |
decodePkcs12()
PKCS#12 format containing a single private/public key pair and certificate chain.
|
SmimeInfo |
encodePkcs12(byte[] pkcs12)
PKCS#12 format containing a single private/public key pair and certificate chain.
|
String |
getEncryptedKeyPassword()
Encrypted key password, when key is encrypted.
|
Long |
getExpiration()
When the certificate expires (in milliseconds since epoch).
|
String |
getId()
The immutable ID for the SmimeInfo.
|
Boolean |
getIsDefault()
Whether this SmimeInfo is the default one for this user's send-as address.
|
String |
getIssuerCn()
The S/MIME certificate issuer's common name.
|
String |
getPem()
PEM formatted X509 concatenated certificate string (standard base64 encoding).
|
String |
getPkcs12()
PKCS#12 format containing a single private/public key pair and certificate chain.
|
SmimeInfo |
set(String fieldName,
Object value) |
SmimeInfo |
setEncryptedKeyPassword(String encryptedKeyPassword)
Encrypted key password, when key is encrypted.
|
SmimeInfo |
setExpiration(Long expiration)
When the certificate expires (in milliseconds since epoch).
|
SmimeInfo |
setId(String id)
The immutable ID for the SmimeInfo.
|
SmimeInfo |
setIsDefault(Boolean isDefault)
Whether this SmimeInfo is the default one for this user's send-as address.
|
SmimeInfo |
setIssuerCn(String issuerCn)
The S/MIME certificate issuer's common name.
|
SmimeInfo |
setPem(String pem)
PEM formatted X509 concatenated certificate string (standard base64 encoding).
|
SmimeInfo |
setPkcs12(String pkcs12)
PKCS#12 format containing a single private/public key pair and certificate chain.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getEncryptedKeyPassword()
null
for nonepublic SmimeInfo setEncryptedKeyPassword(String encryptedKeyPassword)
encryptedKeyPassword
- encryptedKeyPassword or null
for nonepublic Long getExpiration()
null
for nonepublic SmimeInfo setExpiration(Long expiration)
expiration
- expiration or null
for nonepublic String getId()
null
for nonepublic SmimeInfo setId(String id)
id
- id or null
for nonepublic Boolean getIsDefault()
null
for nonepublic SmimeInfo setIsDefault(Boolean isDefault)
isDefault
- isDefault or null
for nonepublic String getIssuerCn()
null
for nonepublic SmimeInfo setIssuerCn(String issuerCn)
issuerCn
- issuerCn or null
for nonepublic String getPem()
null
for nonepublic SmimeInfo setPem(String pem)
pem
- pem or null
for nonepublic String getPkcs12()
null
for nonedecodePkcs12()
public byte[] decodePkcs12()
null
for nonegetPkcs12()
public SmimeInfo setPkcs12(String pkcs12)
pkcs12
- pkcs12 or null
for none#encodePkcs12()
public SmimeInfo encodePkcs12(byte[] pkcs12)
The value is encoded Base64 or {@code null} for none.
public SmimeInfo set(String fieldName, Object value)
set
in class GenericJson
public SmimeInfo clone()
clone
in class GenericJson