public final class SmimeInfo
extends com.google.api.client.json.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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| 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.
|
java.lang.String |
getEncryptedKeyPassword()
Encrypted key password, when key is encrypted.
|
java.lang.Long |
getExpiration()
When the certificate expires (in milliseconds since epoch).
|
java.lang.String |
getId()
The immutable ID for the SmimeInfo.
|
java.lang.Boolean |
getIsDefault()
Whether this SmimeInfo is the default one for this user's send-as address.
|
java.lang.String |
getIssuerCn()
The S/MIME certificate issuer's common name.
|
java.lang.String |
getPem()
PEM formatted X509 concatenated certificate string (standard base64 encoding).
|
java.lang.String |
getPkcs12()
PKCS#12 format containing a single private/public key pair and certificate chain.
|
SmimeInfo |
set(java.lang.String fieldName,
java.lang.Object value) |
SmimeInfo |
setEncryptedKeyPassword(java.lang.String encryptedKeyPassword)
Encrypted key password, when key is encrypted.
|
SmimeInfo |
setExpiration(java.lang.Long expiration)
When the certificate expires (in milliseconds since epoch).
|
SmimeInfo |
setId(java.lang.String id)
The immutable ID for the SmimeInfo.
|
SmimeInfo |
setIsDefault(java.lang.Boolean isDefault)
Whether this SmimeInfo is the default one for this user's send-as address.
|
SmimeInfo |
setIssuerCn(java.lang.String issuerCn)
The S/MIME certificate issuer's common name.
|
SmimeInfo |
setPem(java.lang.String pem)
PEM formatted X509 concatenated certificate string (standard base64 encoding).
|
SmimeInfo |
setPkcs12(java.lang.String pkcs12)
PKCS#12 format containing a single private/public key pair and certificate chain.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getEncryptedKeyPassword()
null for nonepublic SmimeInfo setEncryptedKeyPassword(java.lang.String encryptedKeyPassword)
encryptedKeyPassword - encryptedKeyPassword or null for nonepublic java.lang.Long getExpiration()
null for nonepublic SmimeInfo setExpiration(java.lang.Long expiration)
expiration - expiration or null for nonepublic java.lang.String getId()
null for nonepublic SmimeInfo setId(java.lang.String id)
id - id or null for nonepublic java.lang.Boolean getIsDefault()
null for nonepublic SmimeInfo setIsDefault(java.lang.Boolean isDefault)
isDefault - isDefault or null for nonepublic java.lang.String getIssuerCn()
null for nonepublic SmimeInfo setIssuerCn(java.lang.String issuerCn)
issuerCn - issuerCn or null for nonepublic java.lang.String getPem()
null for nonepublic SmimeInfo setPem(java.lang.String pem)
pem - pem or null for nonepublic java.lang.String getPkcs12()
null for nonedecodePkcs12()public byte[] decodePkcs12()
null for nonegetPkcs12()public SmimeInfo setPkcs12(java.lang.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(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic SmimeInfo clone()
clone in class com.google.api.client.json.GenericJson