Package org.apache.james.jdkim.impl
Class DNSPublicKeyRecordRetriever
- java.lang.Object
-
- org.apache.james.jdkim.impl.DNSPublicKeyRecordRetriever
-
- All Implemented Interfaces:
PublicKeyRecordRetriever
public class DNSPublicKeyRecordRetriever extends Object implements PublicKeyRecordRetriever
-
-
Field Summary
Fields Modifier and Type Field Description protected org.xbill.DNS.Resolverresolver
-
Constructor Summary
Constructors Constructor Description DNSPublicKeyRecordRetriever()DNSPublicKeyRecordRetriever(org.xbill.DNS.Resolver resolver)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<String>convertRecordsToList(org.xbill.DNS.Record[] rr)Convert the given TXT Record array to a String ListList<String>getRecords(CharSequence methodAndOptions, CharSequence selector, CharSequence token)
-
-
-
Method Detail
-
getRecords
public List<String> getRecords(CharSequence methodAndOptions, CharSequence selector, CharSequence token) throws TempFailException, PermFailException
- Specified by:
getRecordsin interfacePublicKeyRecordRetriever- Parameters:
methodAndOptions- the options declared for the lookup method.selector- the value of "s=" tagtoken- the value of the "d=" tag- Returns:
- A list of strings representing 0 to multiple records
- Throws:
TempFailException- in case of timeout and other network errors.PermFailException- in case of unsupported options- See Also:
PublicKeyRecordRetriever.getRecords(java.lang.CharSequence, java.lang.CharSequence, java.lang.CharSequence)
-
-