Constructor and Description |
---|
DKIMSignOptions()
Default Constructor.
|
DKIMSignOptions(DKIMSignOptions other) |
DKIMSignOptions(JsonObject config)
Constructor from a JsonObject.
|
Modifier and Type | Method and Description |
---|---|
DKIMSignOptions |
addCopiedHeader(String header)
Adds a copied header.
|
DKIMSignOptions |
addSignedHeader(String header)
Adds the signed header
|
boolean |
equals(Object o) |
String |
getAuid()
Gets the Agent or User Identifier(AUID)
|
CanonicalizationAlgorithm |
getBodyCanonAlgo()
Gets the canonicalization algorithm for mail body.
|
int |
getBodyLimit()
Gets the body limit to sign.
|
List<String> |
getCopiedHeaders()
Gets the copied headers used in DKIM.
|
long |
getExpireTime()
Gets the expire time in seconds when the signature sign will be expired.
|
CanonicalizationAlgorithm |
getHeaderCanonAlgo()
Gets the canonicalization algorithm for signed headers.
|
String |
getPrivateKey()
Gets the PKCS#8 format private key used to sign the email.
|
String |
getPrivateKeyPath()
Gets the PKCS#8 format private key file path.
|
String |
getSdid()
Gets the Singing Domain Identifier(SDID).
|
String |
getSelector()
Gets the selector used to query public key.
|
DKIMSignAlgorithm |
getSignAlgo()
Gets the signing algorithm.
|
List<String> |
getSignedHeaders()
Gets the email signedHeaders used to sign.
|
int |
hashCode() |
boolean |
isSignatureTimestamp()
Adds signature sign timestamp or not.
|
DKIMSignOptions |
setAuid(String auid)
Sets the Agent or User Identifier(AUID)
|
DKIMSignOptions |
setBodyCanonAlgo(CanonicalizationAlgorithm bodyCanonAlgo)
Sets the canonicalization algorithm for mail body.
|
DKIMSignOptions |
setBodyLimit(int bodyLimit)
Sets the body limit to sign.
|
DKIMSignOptions |
setCopiedHeaders(List<String> copiedHeaders)
Sets the copied headers used in DKIM.
|
DKIMSignOptions |
setExpireTime(long expireTime)
Sets the expire time in seconds when the signature sign will be expired.
|
DKIMSignOptions |
setHeaderCanonAlgo(CanonicalizationAlgorithm headerCanonAlgo)
Sets the canonicalization algorithm for signed headers.
|
DKIMSignOptions |
setPrivateKey(String privateKey)
Sets the PKCS#8 format private key used to sign the email.
|
DKIMSignOptions |
setPrivateKeyPath(String privateKeyPath)
Sets the PKCS#8 format private key file path.
|
DKIMSignOptions |
setSdid(String sdid)
Sets the Singing Domain Identifier(SDID).
|
DKIMSignOptions |
setSelector(String selector)
Sets the selector used to query the public key.
|
DKIMSignOptions |
setSignAlgo(DKIMSignAlgorithm signAlgo)
Sets the signing algorithm.
|
DKIMSignOptions |
setSignatureTimestamp(boolean signatureTimestamp)
Sets to enable or disable signature sign timestmap.
|
DKIMSignOptions |
setSignedHeaders(List<String> signedHeaders)
Sets the email signedHeaders used to sign.
|
JsonObject |
toJson()
Converts to JsonObject
|
public DKIMSignOptions()
public DKIMSignOptions(DKIMSignOptions other)
public DKIMSignOptions(JsonObject config)
config
- the JsonObject configurationpublic JsonObject toJson()
public DKIMSignAlgorithm getSignAlgo()
public String getPrivateKey()
public DKIMSignOptions setPrivateKey(String privateKey)
privateKey
- the base64 encdoing private key content.public String getPrivateKeyPath()
public DKIMSignOptions setPrivateKeyPath(String privateKeyPath)
privateKeyPath
- The PKCS#8 format private key file path.public DKIMSignOptions setSignAlgo(DKIMSignAlgorithm signAlgo)
signAlgo
- the signing algorithmpublic List<String> getSignedHeaders()
public DKIMSignOptions setSignedHeaders(List<String> signedHeaders)
signedHeaders
- the email signedHeaderspublic DKIMSignOptions addSignedHeader(String header)
header
- the header namepublic String getSdid()
public DKIMSignOptions setSdid(String sdid)
sdid
- the signing domain identifierpublic String getSelector()
public DKIMSignOptions setSelector(String selector)
selector
- the selectorpublic CanonicalizationAlgorithm getHeaderCanonAlgo()
public DKIMSignOptions setHeaderCanonAlgo(CanonicalizationAlgorithm headerCanonAlgo)
headerCanonAlgo
- the canonicalization algorithm for signed headerspublic CanonicalizationAlgorithm getBodyCanonAlgo()
public DKIMSignOptions setBodyCanonAlgo(CanonicalizationAlgorithm bodyCanonAlgo)
bodyCanonAlgo
- the canonicalization algorithm for mail bodypublic String getAuid()
public DKIMSignOptions setAuid(String auid)
auid
- the AUIDpublic int getBodyLimit()
public DKIMSignOptions setBodyLimit(int bodyLimit)
bodyLimit
- the body limitpublic boolean isSignatureTimestamp()
public DKIMSignOptions setSignatureTimestamp(boolean signatureTimestamp)
signatureTimestamp
- if enable signature sign timestamp or notpublic long getExpireTime()
public DKIMSignOptions setExpireTime(long expireTime)
expireTime
- the expire time in secondspublic List<String> getCopiedHeaders()
public DKIMSignOptions setCopiedHeaders(List<String> copiedHeaders)
copiedHeaders
- the copied headerspublic DKIMSignOptions addCopiedHeader(String header)
header
- an email headerCopyright © 2022 Eclipse. All rights reserved.