Package org.apache.james.jdkim.impl
Class MultiplexingPublicKeyRecordRetriever
- java.lang.Object
-
- org.apache.james.jdkim.impl.MultiplexingPublicKeyRecordRetriever
-
- All Implemented Interfaces:
PublicKeyRecordRetriever
public class MultiplexingPublicKeyRecordRetriever extends Object implements PublicKeyRecordRetriever
-
-
Constructor Summary
Constructors Constructor Description MultiplexingPublicKeyRecordRetriever()MultiplexingPublicKeyRecordRetriever(String methodName, PublicKeyRecordRetriever pkrr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRetriever(String methodName, PublicKeyRecordRetriever pkrr)List<String>getRecords(CharSequence methodAndOption, CharSequence selector, CharSequence token)
-
-
-
Constructor Detail
-
MultiplexingPublicKeyRecordRetriever
public MultiplexingPublicKeyRecordRetriever()
-
MultiplexingPublicKeyRecordRetriever
public MultiplexingPublicKeyRecordRetriever(String methodName, PublicKeyRecordRetriever pkrr)
-
-
Method Detail
-
addRetriever
public void addRetriever(String methodName, PublicKeyRecordRetriever pkrr)
-
getRecords
public List<String> getRecords(CharSequence methodAndOption, CharSequence selector, CharSequence token) throws TempFailException, PermFailException
- Specified by:
getRecordsin interfacePublicKeyRecordRetriever- Parameters:
methodAndOption- 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
-
-