Package org.javlo.external.agitos.dkim
Class DKIMSigner
- java.lang.Object
-
- org.javlo.external.agitos.dkim.DKIMSigner
-
public class DKIMSigner extends Object
-
-
Constructor Summary
Constructors Constructor Description DKIMSigner(String signingDomain, String selector, String privkeyFilename)
DKIMSigner(String signingDomain, String selector, PrivateKey privkey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getIdentity
public String getIdentity()
-
setIdentity
public void setIdentity(String identity) throws DKIMSignerException
- Throws:
DKIMSignerException
-
getBodyCanonicalization
public Canonicalization getBodyCanonicalization()
-
setBodyCanonicalization
public void setBodyCanonicalization(Canonicalization bodyCanonicalization) throws DKIMSignerException
- Throws:
DKIMSignerException
-
getHeaderCanonicalization
public Canonicalization getHeaderCanonicalization()
-
setHeaderCanonicalization
public void setHeaderCanonicalization(Canonicalization headerCanonicalization) throws DKIMSignerException
- Throws:
DKIMSignerException
-
getDefaultHeadersToSign
public String[] getDefaultHeadersToSign()
-
addHeaderToSign
public void addHeaderToSign(String header)
-
removeHeaderToSign
public void removeHeaderToSign(String header)
-
setLengthParam
public void setLengthParam(boolean lengthParam)
-
getLengthParam
public boolean getLengthParam()
-
isZParam
public boolean isZParam()
-
setZParam
public void setZParam(boolean param)
-
getSigningAlgorithm
public SigningAlgorithm getSigningAlgorithm()
-
setSigningAlgorithm
public void setSigningAlgorithm(SigningAlgorithm signingAlgorithm) throws DKIMSignerException
- Throws:
DKIMSignerException
-
sign
public String sign(SMTPDKIMMessage message) throws DKIMSignerException, javax.mail.MessagingException
- Throws:
DKIMSignerException
javax.mail.MessagingException
-
-