class Google::Apis::GmailV1::SmimeInfo

An S/MIME email config.

Attributes

encrypted_key_password[RW]

Encrypted key password, when key is encrypted. Corresponds to the JSON property `encryptedKeyPassword` @return [String]

expiration[RW]

When the certificate expires (in milliseconds since epoch). Corresponds to the JSON property `expiration` @return [Fixnum]

id[RW]

The immutable ID for the SmimeInfo. Corresponds to the JSON property `id` @return [String]

is_default[RW]

Whether this SmimeInfo is the default one for this user's send-as address. Corresponds to the JSON property `isDefault` @return [Boolean]

is_default?[RW]

Whether this SmimeInfo is the default one for this user's send-as address. Corresponds to the JSON property `isDefault` @return [Boolean]

issuer_cn[RW]

The S/MIME certificate issuer's common name. Corresponds to the JSON property `issuerCn` @return [String]

pem[RW]

PEM formatted X509 concatenated certificate string (standard base64 encoding). Format used for returning key, which includes public key as well as certificate chain (not private key). Corresponds to the JSON property `pem` @return [String]

pkcs12[RW]

PKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key is not intended to be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set appropriately. Corresponds to the JSON property `pkcs12` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gmail_v1/classes.rb, line 1372
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gmail_v1/classes.rb, line 1377
def update!(**args)
  @encrypted_key_password = args[:encrypted_key_password] if args.key?(:encrypted_key_password)
  @expiration = args[:expiration] if args.key?(:expiration)
  @id = args[:id] if args.key?(:id)
  @is_default = args[:is_default] if args.key?(:is_default)
  @issuer_cn = args[:issuer_cn] if args.key?(:issuer_cn)
  @pem = args[:pem] if args.key?(:pem)
  @pkcs12 = args[:pkcs12] if args.key?(:pkcs12)
end