Package org.apache.james.jdkim.tagvalue
Class SignatureRecordImpl
java.lang.Object
org.apache.james.jdkim.tagvalue.TagValue
org.apache.james.jdkim.tagvalue.SignatureRecordImpl
- All Implemented Interfaces:
SignatureRecord
-
Field Summary
Fields inherited from class org.apache.james.jdkim.tagvalue.TagValue
debug, defaults, mandatoryTags, VALIDATIONFields inherited from interface org.apache.james.jdkim.api.SignatureRecord
ALL, ISCHEDULE_RELAXED, RELAXED, SIMPLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic SignatureRecordImplforIschedule(String data) byte[]intprotected CharSequencegetDefault(String tag) String[]This may throws IllegalArgumentException on invalid "http" content, but should always happen during validation!This may throws IllegalArgumentException on invalid "i" content, but should always happen during validation!byte[]protected voidinit()voidsetBodyHash(byte[] newBodyHash) voidsetSignature(byte[] newSignature) voidvalidate()Methods inherited from class org.apache.james.jdkim.tagvalue.TagValue
containsTag, debugMsg, equals, getTags, getValue, hashCode, isInListCaseInsensitive, newTagValue, parse, setValue, stringToColonSeparatedList, tagSet, toString, trimFWS
-
Constructor Details
-
SignatureRecordImpl
-
-
Method Details
-
forIschedule
-
init
protected void init() -
validate
- Specified by:
validatein interfaceSignatureRecord- Overrides:
validatein classTagValue- Throws:
IllegalStateException- See Also:
-
getHeaders
- Specified by:
getHeadersin interfaceSignatureRecord- See Also:
-
getDefault
- Overrides:
getDefaultin classTagValue
-
getIdentityLocalPart
- Specified by:
getIdentityLocalPartin interfaceSignatureRecord- See Also:
-
getIdentity
This may throws IllegalArgumentException on invalid "i" content, but should always happen during validation!- Specified by:
getIdentityin interfaceSignatureRecord- See Also:
-
getHttpVals
This may throws IllegalArgumentException on invalid "http" content, but should always happen during validation!- Returns:
- String[] [http-method, uri]
-
dkimQuotedPrintableDecode
- Throws:
IllegalArgumentException
-
getHashKeyType
- Specified by:
getHashKeyTypein interfaceSignatureRecord- See Also:
-
getHashMethod
- Specified by:
getHashMethodin interfaceSignatureRecord- See Also:
-
getHashAlgo
- Specified by:
getHashAlgoin interfaceSignatureRecord- See Also:
-
getSelector
- Specified by:
getSelectorin interfaceSignatureRecord- See Also:
-
getDToken
- Specified by:
getDTokenin interfaceSignatureRecord- See Also:
-
getBodyHash
public byte[] getBodyHash()- Specified by:
getBodyHashin interfaceSignatureRecord
-
getSignature
public byte[] getSignature()- Specified by:
getSignaturein interfaceSignatureRecord
-
getBodyHashLimit
public int getBodyHashLimit()- Specified by:
getBodyHashLimitin interfaceSignatureRecord
-
getSignatureTimestamp
- Specified by:
getSignatureTimestampin interfaceSignatureRecord
-
getBodyCanonicalisationMethod
- Specified by:
getBodyCanonicalisationMethodin interfaceSignatureRecord
-
getHeaderCanonicalisationMethod
- Specified by:
getHeaderCanonicalisationMethodin interfaceSignatureRecord
-
getRecordLookupMethods
- Specified by:
getRecordLookupMethodsin interfaceSignatureRecord
-
setSignature
public void setSignature(byte[] newSignature) - Specified by:
setSignaturein interfaceSignatureRecord
-
setBodyHash
public void setBodyHash(byte[] newBodyHash) - Specified by:
setBodyHashin interfaceSignatureRecord
-
toUnsignedString
- Specified by:
toUnsignedStringin interfaceSignatureRecord
-