org.apache.james.jdkim.tagvalue
Class SignatureRecordImpl

java.lang.Object
  extended by org.apache.james.jdkim.tagvalue.TagValue
      extended by org.apache.james.jdkim.tagvalue.SignatureRecordImpl
All Implemented Interfaces:
SignatureRecord

public class SignatureRecordImpl
extends TagValue
implements SignatureRecord


Field Summary
 
Fields inherited from class org.apache.james.jdkim.tagvalue.TagValue
defaults, mandatoryTags, VALIDATION
 
Fields inherited from interface org.apache.james.jdkim.api.SignatureRecord
ALL, RELAXED, SIMPLE
 
Constructor Summary
SignatureRecordImpl(String data)
           
 
Method Summary
static String dkimQuotedPrintableDecode(CharSequence input)
           
 String getBodyCanonicalisationMethod()
           
 byte[] getBodyHash()
           
 int getBodyHashLimit()
           
protected  CharSequence getDefault(String tag)
           
 CharSequence getDToken()
           
 CharSequence getHashAlgo()
           
 CharSequence getHashKeyType()
           
 CharSequence getHashMethod()
           
 String getHeaderCanonicalisationMethod()
           
 List getHeaders()
           
 CharSequence getIdentity()
           
 CharSequence getIdentityLocalPart()
           
 List getRecordLookupMethods()
           
 CharSequence getSelector()
           
 byte[] getSignature()
           
protected  void init()
           
 void setBodyHash(byte[] newBodyHash)
           
 void setSignature(byte[] newSignature)
           
 String toUnsignedString()
           
 void validate()
           
 
Methods inherited from class org.apache.james.jdkim.tagvalue.TagValue
containsTag, equals, getTags, getValue, hashCode, isInListCaseInsensitive, newTagValue, parse, setValue, stringToColonSeparatedList, tagSet, toString, trimFWS
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SignatureRecordImpl

public SignatureRecordImpl(String data)
Method Detail

init

protected void init()
Overrides:
init in class TagValue

validate

public void validate()
              throws IllegalStateException
Specified by:
validate in interface SignatureRecord
Overrides:
validate in class TagValue
Throws:
IllegalStateException
See Also:
SignatureRecord.validate()

getHeaders

public List getHeaders()
Specified by:
getHeaders in interface SignatureRecord
See Also:
SignatureRecord.getHeaders()

getDefault

protected CharSequence getDefault(String tag)
Overrides:
getDefault in class TagValue

getIdentityLocalPart

public CharSequence getIdentityLocalPart()
Specified by:
getIdentityLocalPart in interface SignatureRecord
See Also:
SignatureRecord.getIdentityLocalPart()

getIdentity

public CharSequence getIdentity()
Specified by:
getIdentity in interface SignatureRecord

dkimQuotedPrintableDecode

public static String dkimQuotedPrintableDecode(CharSequence input)
                                        throws IllegalArgumentException
Throws:
IllegalArgumentException

getHashKeyType

public CharSequence getHashKeyType()
Specified by:
getHashKeyType in interface SignatureRecord
See Also:
SignatureRecord.getHashKeyType()

getHashMethod

public CharSequence getHashMethod()
Specified by:
getHashMethod in interface SignatureRecord
See Also:
SignatureRecord.getHashMethod()

getHashAlgo

public CharSequence getHashAlgo()
Specified by:
getHashAlgo in interface SignatureRecord
See Also:
SignatureRecord.getHashAlgo()

getSelector

public CharSequence getSelector()
Specified by:
getSelector in interface SignatureRecord
See Also:
SignatureRecord.getSelector()

getDToken

public CharSequence getDToken()
Specified by:
getDToken in interface SignatureRecord
See Also:
SignatureRecord.getDToken()

getBodyHash

public byte[] getBodyHash()
Specified by:
getBodyHash in interface SignatureRecord

getSignature

public byte[] getSignature()
Specified by:
getSignature in interface SignatureRecord

getBodyHashLimit

public int getBodyHashLimit()
Specified by:
getBodyHashLimit in interface SignatureRecord

getBodyCanonicalisationMethod

public String getBodyCanonicalisationMethod()
Specified by:
getBodyCanonicalisationMethod in interface SignatureRecord

getHeaderCanonicalisationMethod

public String getHeaderCanonicalisationMethod()
Specified by:
getHeaderCanonicalisationMethod in interface SignatureRecord

getRecordLookupMethods

public List getRecordLookupMethods()
Specified by:
getRecordLookupMethods in interface SignatureRecord

setSignature

public void setSignature(byte[] newSignature)
Specified by:
setSignature in interface SignatureRecord

setBodyHash

public void setBodyHash(byte[] newBodyHash)
Specified by:
setBodyHash in interface SignatureRecord

toUnsignedString

public String toUnsignedString()
Specified by:
toUnsignedString in interface SignatureRecord


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.