Package org.candlepin.pki.impl

Examples of org.candlepin.pki.impl.DefaultSubjectKeyIdentifierWriter


    }

    @Before
    public void init() throws Exception {
        this.pkiUtility = new BouncyCastlePKIUtility(pkiReader,
            new DefaultSubjectKeyIdentifierWriter());
        this.generator = new CrlGenerator(curator, pkiUtility);

        when(pkiReader.getCaKey()).thenReturn(KP.getPrivate());
        when(pkiReader.getCACert()).thenReturn(CERT);
    }
View Full Code Here


    @Test
    public void importConsumer() throws Exception {
        Security.addProvider(new BouncyCastleProvider());
        PKIUtility pki = new BouncyCastlePKIUtility(null,
            new DefaultSubjectKeyIdentifierWriter());

        OwnerCurator oc = mock(OwnerCurator.class);
        ConsumerTypeCurator ctc = mock(ConsumerTypeCurator.class);
        ConsumerType type = new ConsumerType(ConsumerTypeEnum.CANDLEPIN);
        when(ctc.lookupByLabel(eq("candlepin"))).thenReturn(type);
View Full Code Here

TOP

Related Classes of org.candlepin.pki.impl.DefaultSubjectKeyIdentifierWriter

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.