Package org.apache.james.jdkim.impl
Class StoredPublicKeyRecordRetriever
- java.lang.Object
-
- org.apache.james.jdkim.impl.StoredPublicKeyRecordRetriever
-
- All Implemented Interfaces:
PublicKeyRecordRetriever
public class StoredPublicKeyRecordRetriever extends Object implements PublicKeyRecordRetriever
Stores and returns public keys which have been supplied in some out of band manner
-
-
Constructor Summary
Constructors Constructor Description StoredPublicKeyRecordRetriever()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddKey(String domain, String selector, String key)static voidclearKeys()List<String>getRecords(CharSequence methodAndOptions, CharSequence selector, CharSequence token)
-
-
-
Method Detail
-
clearKeys
public static void clearKeys()
-
addKey
public static void addKey(String domain, String selector, String key)
- Parameters:
domain- per specselector- per speckey- per spec
-
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)
-
-