org.apache.james.jdkim
Class MockPublicKeyRecordRetriever

java.lang.Object
  extended by org.apache.james.jdkim.MockPublicKeyRecordRetriever
All Implemented Interfaces:
PublicKeyRecordRetriever

public class MockPublicKeyRecordRetriever
extends Object
implements PublicKeyRecordRetriever

This is a mock public key record retriever that store the "registry" in a local map.


Constructor Summary
MockPublicKeyRecordRetriever()
           
MockPublicKeyRecordRetriever(String record, CharSequence selector, CharSequence token)
           
 
Method Summary
 void addRecord(String selector, String token, String record)
           
 List getRecords(CharSequence methodAndOptions, CharSequence selector, CharSequence token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockPublicKeyRecordRetriever

public MockPublicKeyRecordRetriever()

MockPublicKeyRecordRetriever

public MockPublicKeyRecordRetriever(String record,
                                    CharSequence selector,
                                    CharSequence token)
Method Detail

addRecord

public void addRecord(String selector,
                      String token,
                      String record)

getRecords

public List getRecords(CharSequence methodAndOptions,
                       CharSequence selector,
                       CharSequence token)
                throws TempFailException,
                       PermFailException
Specified by:
getRecords in interface PublicKeyRecordRetriever
Throws:
TempFailException
PermFailException


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.