All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.gmail.model.SmimeInfo.html Maven / Gradle / Ivy

There is a newer version: v1-rev20240520-2.0.0
Show newest version






SmimeInfo (Gmail API v1-rev20240422-2.0.0)












com.google.api.services.gmail.model

Class SmimeInfo

    • Constructor Detail

      • SmimeInfo

        public SmimeInfo()
    • Method Detail

      • getEncryptedKeyPassword

        public String getEncryptedKeyPassword()
        Encrypted key password, when key is encrypted.
        Returns:
        value or null for none
      • setEncryptedKeyPassword

        public SmimeInfo setEncryptedKeyPassword(String encryptedKeyPassword)
        Encrypted key password, when key is encrypted.
        Parameters:
        encryptedKeyPassword - encryptedKeyPassword or null for none
      • getExpiration

        public Long getExpiration()
        When the certificate expires (in milliseconds since epoch).
        Returns:
        value or null for none
      • setExpiration

        public SmimeInfo setExpiration(Long expiration)
        When the certificate expires (in milliseconds since epoch).
        Parameters:
        expiration - expiration or null for none
      • getId

        public String getId()
        The immutable ID for the SmimeInfo.
        Returns:
        value or null for none
      • setId

        public SmimeInfo setId(String id)
        The immutable ID for the SmimeInfo.
        Parameters:
        id - id or null for none
      • getIsDefault

        public Boolean getIsDefault()
        Whether this SmimeInfo is the default one for this user's send-as address.
        Returns:
        value or null for none
      • setIsDefault

        public SmimeInfo setIsDefault(Boolean isDefault)
        Whether this SmimeInfo is the default one for this user's send-as address.
        Parameters:
        isDefault - isDefault or null for none
      • getIssuerCn

        public String getIssuerCn()
        The S/MIME certificate issuer's common name.
        Returns:
        value or null for none
      • setIssuerCn

        public SmimeInfo setIssuerCn(String issuerCn)
        The S/MIME certificate issuer's common name.
        Parameters:
        issuerCn - issuerCn or null for none
      • getPem

        public String getPem()
        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).
        Returns:
        value or null for none
      • setPem

        public SmimeInfo setPem(String pem)
        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).
        Parameters:
        pem - pem or null for none
      • getPkcs12

        public String getPkcs12()
        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.
        Returns:
        value or null for none
        See Also:
        decodePkcs12()
      • decodePkcs12

        public byte[] decodePkcs12()
        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.
        Returns:
        Base64 decoded value or null for none
        Since:
        1.14
        See Also:
        getPkcs12()
      • setPkcs12

        public SmimeInfo setPkcs12(String pkcs12)
        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.
        Parameters:
        pkcs12 - pkcs12 or null for none
        See Also:
        #encodePkcs12()
      • encodePkcs12

        public SmimeInfo encodePkcs12(byte[] pkcs12)
        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.
        Since:
        1.14
        See Also:

        The value is encoded Base64 or {@code null} for none.

      • set

        public SmimeInfo set(String fieldName,
                             Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public SmimeInfo clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy