org.apache.james.jdkim.tagvalue
Class PublicKeyRecordImpl

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

public class PublicKeyRecordImpl
extends TagValue
implements PublicKeyRecord


Field Summary
 
Fields inherited from class org.apache.james.jdkim.tagvalue.TagValue
defaults, mandatoryTags, VALIDATION
 
Fields inherited from interface org.apache.james.jdkim.api.PublicKeyRecord
ANY
 
Constructor Summary
PublicKeyRecordImpl(String data)
           
 
Method Summary
 List getAcceptableHashMethods()
           
 List getAcceptableKeyTypes()
           
 List getFlags()
           
 Pattern getGranularityPattern()
           
 PublicKey getPublicKey()
           
protected  void init()
           
 boolean isDenySubdomains()
           
 boolean isHashMethodSupported(CharSequence hash)
           
 boolean isKeyTypeSupported(CharSequence hash)
           
 boolean isTesting()
           
protected  Map newTagValue()
           
 void validate()
           
 
Methods inherited from class org.apache.james.jdkim.tagvalue.TagValue
containsTag, equals, getDefault, getTags, getValue, hashCode, isInListCaseInsensitive, parse, setValue, stringToColonSeparatedList, tagSet, toString, trimFWS
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PublicKeyRecordImpl

public PublicKeyRecordImpl(String data)
Method Detail

newTagValue

protected Map newTagValue()
Overrides:
newTagValue in class TagValue

init

protected void init()
Overrides:
init in class TagValue

validate

public void validate()
Specified by:
validate in interface PublicKeyRecord
Overrides:
validate in class TagValue

isHashMethodSupported

public boolean isHashMethodSupported(CharSequence hash)
Specified by:
isHashMethodSupported in interface PublicKeyRecord
See Also:
PublicKeyRecord.isHashMethodSupported(java.lang.CharSequence)

isKeyTypeSupported

public boolean isKeyTypeSupported(CharSequence hash)
Specified by:
isKeyTypeSupported in interface PublicKeyRecord
See Also:
PublicKeyRecord.isKeyTypeSupported(java.lang.CharSequence)

getAcceptableHashMethods

public List getAcceptableHashMethods()
Specified by:
getAcceptableHashMethods in interface PublicKeyRecord
Returns:
null if "any", otherwise a list of supported methods
See Also:
PublicKeyRecord.getAcceptableHashMethods()

getAcceptableKeyTypes

public List getAcceptableKeyTypes()
Specified by:
getAcceptableKeyTypes in interface PublicKeyRecord
Returns:
null if "any", otherwise a list of supported methods
See Also:
PublicKeyRecord.getAcceptableKeyTypes()

getGranularityPattern

public Pattern getGranularityPattern()
Specified by:
getGranularityPattern in interface PublicKeyRecord
See Also:
PublicKeyRecord.getGranularityPattern()

getFlags

public List getFlags()
Specified by:
getFlags in interface PublicKeyRecord

isDenySubdomains

public boolean isDenySubdomains()
Specified by:
isDenySubdomains in interface PublicKeyRecord

isTesting

public boolean isTesting()
Specified by:
isTesting in interface PublicKeyRecord

getPublicKey

public PublicKey getPublicKey()
Specified by:
getPublicKey in interface PublicKeyRecord
See Also:
PublicKeyRecord.getPublicKey()


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