Class DKIMSignOptions
java.lang.Object
io.vertx.ext.mail.DKIMSignOptions
-
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor.DKIMSignOptions(JsonObject config) Constructor from a JsonObject.DKIMSignOptions(DKIMSignOptions other) -
Method Summary
Modifier and TypeMethodDescriptionaddCopiedHeader(String header) Adds a copied header.addSignedHeader(String header) Adds the signed headerbooleangetAuid()Gets the Agent or User Identifier(AUID)Gets the canonicalization algorithm for mail body.intGets the body limit to sign.Gets the copied headers used in DKIM.longGets the expire time in seconds when the signature sign will be expired.Gets the canonicalization algorithm for signed headers.Gets the PKCS#8 format private key used to sign the email.Gets the PKCS#8 format private key file path.getSdid()Gets the Singing Domain Identifier(SDID).Gets the selector used to query public key.Gets the signing algorithm.Gets the email signedHeaders used to sign.inthashCode()booleanAdds signature sign timestamp or not.Sets the Agent or User Identifier(AUID)setBodyCanonAlgo(CanonicalizationAlgorithm bodyCanonAlgo) Sets the canonicalization algorithm for mail body.setBodyLimit(int bodyLimit) Sets the body limit to sign.setCopiedHeaders(List<String> copiedHeaders) Sets the copied headers used in DKIM.setExpireTime(long expireTime) Sets the expire time in seconds when the signature sign will be expired.setHeaderCanonAlgo(CanonicalizationAlgorithm headerCanonAlgo) Sets the canonicalization algorithm for signed headers.setPrivateKey(String privateKey) Sets the PKCS#8 format private key used to sign the email.setPrivateKeyPath(String privateKeyPath) Sets the PKCS#8 format private key file path.Sets the Singing Domain Identifier(SDID).setSelector(String selector) Sets the selector used to query the public key.setSignAlgo(DKIMSignAlgorithm signAlgo) Sets the signing algorithm.setSignatureTimestamp(boolean signatureTimestamp) Sets to enable or disable signature sign timestmap.setSignedHeaders(List<String> signedHeaders) Sets the email signedHeaders used to sign.toJson()Converts to JsonObject
-
Constructor Details
-
DKIMSignOptions
public DKIMSignOptions()Default Constructor. -
DKIMSignOptions
-
DKIMSignOptions
Constructor from a JsonObject.- Parameters:
config- the JsonObject configuration
-
-
Method Details
-
toJson
Converts to JsonObject- Returns:
- the JsonObject which represents current configuration.
-
getSignAlgo
-
getPrivateKey
Gets the PKCS#8 format private key used to sign the email.- Returns:
- the private key
-
setPrivateKey
Sets the PKCS#8 format private key used to sign the email.- Parameters:
privateKey- the base64 encdoing private key content.- Returns:
- a reference to this, so the API can be used fluently
-
getPrivateKeyPath
Gets the PKCS#8 format private key file path.- Returns:
- the PKCS#8 format private key file path.
-
setPrivateKeyPath
Sets the PKCS#8 format private key file path.- Parameters:
privateKeyPath- The PKCS#8 format private key file path.- Returns:
- a reference to this, so the API can be used fluently
-
setSignAlgo
Sets the signing algorithm.- Parameters:
signAlgo- the signing algorithm- Returns:
- a reference to this, so the API can be used fluently
-
getSignedHeaders
-
setSignedHeaders
Sets the email signedHeaders used to sign.- Parameters:
signedHeaders- the email signedHeaders- Returns:
- a reference to this, so the API can be used fluently
-
addSignedHeader
Adds the signed header- Parameters:
header- the header name- Returns:
- a reference to this, so the API can be used fluently
-
getSdid
Gets the Singing Domain Identifier(SDID).- Returns:
- the signing domain identifier
-
setSdid
Sets the Singing Domain Identifier(SDID).- Parameters:
sdid- the signing domain identifier- Returns:
- a reference to this, so the API can be used fluently
-
getSelector
-
setSelector
Sets the selector used to query the public key.- Parameters:
selector- the selector- Returns:
- a reference to this, so the API can be used fluently
-
getHeaderCanonAlgo
Gets the canonicalization algorithm for signed headers.- Returns:
- the canonicalization algorithm for signed headers
-
setHeaderCanonAlgo
Sets the canonicalization algorithm for signed headers.- Parameters:
headerCanonAlgo- the canonicalization algorithm for signed headers- Returns:
- a reference to this, so the API can be used fluently
-
getBodyCanonAlgo
Gets the canonicalization algorithm for mail body.- Returns:
- the canonicalization algorithm for mail body
-
setBodyCanonAlgo
Sets the canonicalization algorithm for mail body.- Parameters:
bodyCanonAlgo- the canonicalization algorithm for mail body- Returns:
- a reference to this, so the API can be used fluently
-
getAuid
-
setAuid
Sets the Agent or User Identifier(AUID)- Parameters:
auid- the AUID- Returns:
- a reference to this, so the API can be used fluently
-
getBodyLimit
public int getBodyLimit()Gets the body limit to sign.- Returns:
- the body limit
-
setBodyLimit
Sets the body limit to sign.- Parameters:
bodyLimit- the body limit- Returns:
- a reference to this, so the API can be used fluently
-
isSignatureTimestamp
public boolean isSignatureTimestamp()Adds signature sign timestamp or not.- Returns:
- true if yes, false otherwise
-
setSignatureTimestamp
Sets to enable or disable signature sign timestmap. Default is disabled.- Parameters:
signatureTimestamp- if enable signature sign timestamp or not- Returns:
- a reference to this, so the API can be used fluently
-
getExpireTime
public long getExpireTime()Gets the expire time in seconds when the signature sign will be expired.- Returns:
- expire time of signature. Positive value means the signature sign timestamp is enabled.
-
setExpireTime
Sets the expire time in seconds when the signature sign will be expired. Success call of this method indicates that the signature sign timestamp is enabled.- Parameters:
expireTime- the expire time in seconds- Returns:
- a reference to this, so the API can be used fluently
-
getCopiedHeaders
-
setCopiedHeaders
Sets the copied headers used in DKIM.- Parameters:
copiedHeaders- the copied headers- Returns:
- a reference to this, so the API can be used fluently
-
addCopiedHeader
Adds a copied header.- Parameters:
header- an email header
-
equals
-
hashCode
-