public class DKIMSigner extends Object
Constructor and Description |
---|
DKIMSigner(String signingDomain,
String selector,
PrivateKey privkey) |
DKIMSigner(String signingDomain,
String selector,
String privkeyFilename) |
Modifier and Type | Method and Description |
---|---|
void |
addHeaderToSign(String header) |
Canonicalization |
getBodyCanonicalization() |
String[] |
getDefaultHeadersToSign() |
Canonicalization |
getHeaderCanonicalization() |
String |
getIdentity() |
boolean |
getLengthParam() |
SigningAlgorithm |
getSigningAlgorithm() |
boolean |
isZParam() |
void |
removeHeaderToSign(String header) |
void |
setBodyCanonicalization(Canonicalization bodyCanonicalization) |
void |
setHeaderCanonicalization(Canonicalization headerCanonicalization) |
void |
setIdentity(String identity) |
void |
setLengthParam(boolean lengthParam) |
void |
setSigningAlgorithm(SigningAlgorithm signingAlgorithm) |
void |
setZParam(boolean param) |
String |
sign(SMTPDKIMMessage message) |
public DKIMSigner(String signingDomain, String selector, PrivateKey privkey) throws Exception
Exception
public String getIdentity()
public void setIdentity(String identity) throws DKIMSignerException
DKIMSignerException
public Canonicalization getBodyCanonicalization()
public void setBodyCanonicalization(Canonicalization bodyCanonicalization) throws DKIMSignerException
DKIMSignerException
public Canonicalization getHeaderCanonicalization()
public void setHeaderCanonicalization(Canonicalization headerCanonicalization) throws DKIMSignerException
DKIMSignerException
public String[] getDefaultHeadersToSign()
public void addHeaderToSign(String header)
public void removeHeaderToSign(String header)
public void setLengthParam(boolean lengthParam)
public boolean getLengthParam()
public boolean isZParam()
public void setZParam(boolean param)
public SigningAlgorithm getSigningAlgorithm()
public void setSigningAlgorithm(SigningAlgorithm signingAlgorithm) throws DKIMSignerException
DKIMSignerException
public String sign(SMTPDKIMMessage message) throws DKIMSignerException, javax.mail.MessagingException
DKIMSignerException
javax.mail.MessagingException
Copyright © 2012-2018. All Rights Reserved.