Package org.apache.james.jdkim.impl

Examples of org.apache.james.jdkim.impl.DNSPublicKeyRecordRetriever


public class DNSPublicKeyRetrieverTest extends TestCase {

    public void testWrongOption() throws TempFailException {
        try {
            new DNSPublicKeyRecordRetriever().getRecords("somethingelse",
                    "test", "test");
            fail("expected unsupported operation");
        } catch (PermFailException e) {
        }
    }
View Full Code Here


        } catch (PermFailException e) {
        }
    }

    public void testConstructor() {
        new DNSPublicKeyRecordRetriever();
    }
View Full Code Here

     * TODO: Requires internet connection
     *
     * @throws PermFailException
     */
    public void testRetrieve() throws TempFailException, PermFailException {
        PublicKeyRecordRetriever pkr = new DNSPublicKeyRecordRetriever();
        pkr.getRecords("dns/txt", "lima", "yahoogroups.com");
        pkr.getRecords("dns/txt", "gamma", "gmail.com");

        new TagValue((String) pkr.getRecords("dns/txt", "lima",
                "yahoogroups.com").get(0));
    }
View Full Code Here

    private PublicKeyRecordRetriever publicKeyRecordRetriever;

    public DKIMVerifier() {
        this.publicKeyRecordRetriever = new MultiplexingPublicKeyRecordRetriever(
                "dns", new DNSPublicKeyRecordRetriever());
    }
View Full Code Here

TOP

Related Classes of org.apache.james.jdkim.impl.DNSPublicKeyRecordRetriever

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.