target.apidocs.com.google.api.services.gmail.model.CseIdentity.html Maven / Gradle / Ivy
CseIdentity (Gmail API v1-rev20240422-2.0.0)
com.google.api.services.gmail.model
Class CseIdentity
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.gmail.model.CseIdentity
-
public final class CseIdentity
extends com.google.api.client.json.GenericJson
The client-side encryption (CSE) configuration for the email address of an authenticated user.
Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign
and send encrypted email messages.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
CseIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
CseIdentity
clone()
String
getEmailAddress()
The email address for the sending identity.
String
getPrimaryKeyPairId()
If a key pair is associated, the ID of the key pair, CseKeyPair.
SignAndEncryptKeyPairs
getSignAndEncryptKeyPairs()
The configuration of a CSE identity that uses different key pairs for signing and encryption.
CseIdentity
set(String fieldName,
Object value)
CseIdentity
setEmailAddress(String emailAddress)
The email address for the sending identity.
CseIdentity
setPrimaryKeyPairId(String primaryKeyPairId)
If a key pair is associated, the ID of the key pair, CseKeyPair.
CseIdentity
setSignAndEncryptKeyPairs(SignAndEncryptKeyPairs signAndEncryptKeyPairs)
The configuration of a CSE identity that uses different key pairs for signing and encryption.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getEmailAddress
public String getEmailAddress()
The email address for the sending identity. The email address must be the primary email address
of the authenticated user.
- Returns:
- value or
null
for none
-
setEmailAddress
public CseIdentity setEmailAddress(String emailAddress)
The email address for the sending identity. The email address must be the primary email address
of the authenticated user.
- Parameters:
emailAddress
- emailAddress or null
for none
-
getPrimaryKeyPairId
public String getPrimaryKeyPairId()
If a key pair is associated, the ID of the key pair, CseKeyPair.
- Returns:
- value or
null
for none
-
setPrimaryKeyPairId
public CseIdentity setPrimaryKeyPairId(String primaryKeyPairId)
If a key pair is associated, the ID of the key pair, CseKeyPair.
- Parameters:
primaryKeyPairId
- primaryKeyPairId or null
for none
-
getSignAndEncryptKeyPairs
public SignAndEncryptKeyPairs getSignAndEncryptKeyPairs()
The configuration of a CSE identity that uses different key pairs for signing and encryption.
- Returns:
- value or
null
for none
-
setSignAndEncryptKeyPairs
public CseIdentity setSignAndEncryptKeyPairs(SignAndEncryptKeyPairs signAndEncryptKeyPairs)
The configuration of a CSE identity that uses different key pairs for signing and encryption.
- Parameters:
signAndEncryptKeyPairs
- signAndEncryptKeyPairs or null
for none
-
set
public CseIdentity set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public CseIdentity 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