Examples of BouncyCastlePKIUtility


Examples of org.candlepin.pki.impl.BouncyCastlePKIUtility

        return "CN=test, UID=" + UUID.randomUUID();
    }

    @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

Examples of org.candlepin.pki.impl.BouncyCastlePKIUtility

    @Test
    public void testDetachedEntitlementDataNotAddedToCertV1()
        throws Exception {

        KeyPair keyPair = new BouncyCastlePKIUtility(null, null).generateNewKeyPair();
        when(keyPairCurator.getConsumerKeyPair(any(Consumer.class))).thenReturn(keyPair);

        when(mockedPKI.getPemEncoded(any(X509Certificate.class))).thenReturn(
            "".getBytes());
        when(mockedPKI.getPemEncoded(any(Key.class))).thenReturn("".getBytes());
View Full Code Here

Examples of org.candlepin.pki.impl.BouncyCastlePKIUtility

    }

    @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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.