Package org.apache.james.jdkim.tagvalue
Class PublicKeyRecordImpl
- java.lang.Object
-
- org.apache.james.jdkim.tagvalue.TagValue
-
- 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
debug, defaults, mandatoryTags, VALIDATION
-
Fields inherited from interface org.apache.james.jdkim.api.PublicKeyRecord
ANY
-
-
Constructor Summary
Constructors Constructor Description PublicKeyRecordImpl(String data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CharSequence>getAcceptableHashMethods()List<CharSequence>getAcceptableKeyTypes()List<CharSequence>getFlags()PatterngetGranularityPattern()PublicKeygetPublicKey()protected voidinit()booleanisDenySubdomains()booleanisHashMethodSupported(CharSequence hash)booleanisKeyTypeSupported(CharSequence hash)booleanisTesting()protected Map<String,CharSequence>newTagValue()voidvalidate()-
Methods inherited from class org.apache.james.jdkim.tagvalue.TagValue
containsTag, debugMsg, equals, getDefault, getTags, getValue, hashCode, isInListCaseInsensitive, parse, setValue, stringToColonSeparatedList, tagSet, toString, trimFWS
-
-
-
-
Constructor Detail
-
PublicKeyRecordImpl
public PublicKeyRecordImpl(String data)
-
-
Method Detail
-
newTagValue
protected Map<String,CharSequence> newTagValue()
- Overrides:
newTagValuein classTagValue
-
validate
public void validate()
- Specified by:
validatein interfacePublicKeyRecord- Overrides:
validatein classTagValue
-
isHashMethodSupported
public boolean isHashMethodSupported(CharSequence hash)
- Specified by:
isHashMethodSupportedin interfacePublicKeyRecord- See Also:
PublicKeyRecord.isHashMethodSupported(java.lang.CharSequence)
-
isKeyTypeSupported
public boolean isKeyTypeSupported(CharSequence hash)
- Specified by:
isKeyTypeSupportedin interfacePublicKeyRecord- See Also:
PublicKeyRecord.isKeyTypeSupported(java.lang.CharSequence)
-
getAcceptableHashMethods
public List<CharSequence> getAcceptableHashMethods()
- Specified by:
getAcceptableHashMethodsin interfacePublicKeyRecord- Returns:
- null if "any", otherwise a list of supported methods
- See Also:
PublicKeyRecord.getAcceptableHashMethods()
-
getAcceptableKeyTypes
public List<CharSequence> getAcceptableKeyTypes()
- Specified by:
getAcceptableKeyTypesin interfacePublicKeyRecord- Returns:
- null if "any", otherwise a list of supported methods
- See Also:
PublicKeyRecord.getAcceptableKeyTypes()
-
getGranularityPattern
public Pattern getGranularityPattern()
- Specified by:
getGranularityPatternin interfacePublicKeyRecord- See Also:
PublicKeyRecord.getGranularityPattern()
-
getFlags
public List<CharSequence> getFlags()
- Specified by:
getFlagsin interfacePublicKeyRecord
-
isDenySubdomains
public boolean isDenySubdomains()
- Specified by:
isDenySubdomainsin interfacePublicKeyRecord
-
isTesting
public boolean isTesting()
- Specified by:
isTestingin interfacePublicKeyRecord
-
getPublicKey
public PublicKey getPublicKey()
- Specified by:
getPublicKeyin interfacePublicKeyRecord- See Also:
PublicKeyRecord.getPublicKey()
-
-