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()
Pattern
getGranularityPattern()
PublicKey
getPublicKey()
protected void
init()
boolean
isDenySubdomains()
boolean
isHashMethodSupported(CharSequence hash)
boolean
isKeyTypeSupported(CharSequence hash)
boolean
isTesting()
protected Map<String,CharSequence>
newTagValue()
void
validate()
-
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:
newTagValue
in classTagValue
-
validate
public void validate()
- Specified by:
validate
in interfacePublicKeyRecord
- Overrides:
validate
in classTagValue
-
isHashMethodSupported
public boolean isHashMethodSupported(CharSequence hash)
- Specified by:
isHashMethodSupported
in interfacePublicKeyRecord
- See Also:
PublicKeyRecord.isHashMethodSupported(java.lang.CharSequence)
-
isKeyTypeSupported
public boolean isKeyTypeSupported(CharSequence hash)
- Specified by:
isKeyTypeSupported
in interfacePublicKeyRecord
- See Also:
PublicKeyRecord.isKeyTypeSupported(java.lang.CharSequence)
-
getAcceptableHashMethods
public List<CharSequence> getAcceptableHashMethods()
- Specified by:
getAcceptableHashMethods
in interfacePublicKeyRecord
- Returns:
- null if "any", otherwise a list of supported methods
- See Also:
PublicKeyRecord.getAcceptableHashMethods()
-
getAcceptableKeyTypes
public List<CharSequence> getAcceptableKeyTypes()
- Specified by:
getAcceptableKeyTypes
in interfacePublicKeyRecord
- Returns:
- null if "any", otherwise a list of supported methods
- See Also:
PublicKeyRecord.getAcceptableKeyTypes()
-
getGranularityPattern
public Pattern getGranularityPattern()
- Specified by:
getGranularityPattern
in interfacePublicKeyRecord
- See Also:
PublicKeyRecord.getGranularityPattern()
-
getFlags
public List<CharSequence> getFlags()
- Specified by:
getFlags
in interfacePublicKeyRecord
-
isDenySubdomains
public boolean isDenySubdomains()
- Specified by:
isDenySubdomains
in interfacePublicKeyRecord
-
isTesting
public boolean isTesting()
- Specified by:
isTesting
in interfacePublicKeyRecord
-
getPublicKey
public PublicKey getPublicKey()
- Specified by:
getPublicKey
in interfacePublicKeyRecord
- See Also:
PublicKeyRecord.getPublicKey()
-
-