Package org.candlepin.util

Examples of org.candlepin.util.X509V3ExtensionUtil$PathNode


    @Before
    public void setUp() {
        Configuration config = new CandlepinCommonTestConfig();
        extensionUtil = new X509ExtensionUtil(config);
        v3extensionUtil = new X509V3ExtensionUtil(config, entCurator);

        certServiceAdapter = new DefaultEntitlementCertServiceAdapter(
            mockedPKI, extensionUtil, v3extensionUtil,
            mock(EntitlementCertificateCurator.class), keyPairCurator,
            serialCurator, productAdapter, entCurator,
View Full Code Here


        when(consumer.getFact(eq("system.certificate_version"))).thenReturn("3.2");
        ProductAttribute attr = new ProductAttribute("ram", "4");
        subscription.getProduct().addAttribute(attr);

        X509V3ExtensionUtil mockV3extensionUtil = mock(X509V3ExtensionUtil.class);
        X509ExtensionUtil mockExtensionUtil = mock(X509ExtensionUtil.class);

        DefaultEntitlementCertServiceAdapter entAdapter =
            new DefaultEntitlementCertServiceAdapter(
                mockedPKI, mockExtensionUtil, mockV3extensionUtil,
View Full Code Here

    public void ensureV3CertIsCreatedWhenEnableCertV3ConfigIsTrue() throws Exception {
        Configuration mockConfig = mock(Configuration.class);

        when(consumer.getFact(eq("system.certificate_version"))).thenReturn("3.0");

        X509V3ExtensionUtil mockV3extensionUtil = mock(X509V3ExtensionUtil.class);
        X509ExtensionUtil mockExtensionUtil = mock(X509ExtensionUtil.class);

        DefaultEntitlementCertServiceAdapter entAdapter =
            new DefaultEntitlementCertServiceAdapter(
                mockedPKI, mockExtensionUtil, mockV3extensionUtil,
View Full Code Here

        Set<ConsumerCapability> set = new HashSet<ConsumerCapability>();
        set.add(new ConsumerCapability(consumer, "cert_v3"));
        when(consumer.getCapabilities()).thenReturn(set);

        X509V3ExtensionUtil mockV3extensionUtil = mock(X509V3ExtensionUtil.class);
        X509ExtensionUtil mockExtensionUtil = mock(X509ExtensionUtil.class);

        DefaultEntitlementCertServiceAdapter entAdapter =
            new DefaultEntitlementCertServiceAdapter(
                mockedPKI, mockExtensionUtil, mockV3extensionUtil,
View Full Code Here

        Configuration mockConfig = mock(Configuration.class);

        when(consumer.getType()).thenReturn(
            new ConsumerType(ConsumerType.ConsumerTypeEnum.SYSTEM));

        X509V3ExtensionUtil mockV3extensionUtil = mock(X509V3ExtensionUtil.class);
        X509ExtensionUtil mockExtensionUtil = mock(X509ExtensionUtil.class);

        DefaultEntitlementCertServiceAdapter entAdapter =
            new DefaultEntitlementCertServiceAdapter(
                mockedPKI, mockExtensionUtil, mockV3extensionUtil,
View Full Code Here

        Configuration mockConfig = mock(Configuration.class);

        when(consumer.getType()).thenReturn(
            new ConsumerType(ConsumerType.ConsumerTypeEnum.HYPERVISOR));

        X509V3ExtensionUtil mockV3extensionUtil = mock(X509V3ExtensionUtil.class);
        X509ExtensionUtil mockExtensionUtil = mock(X509ExtensionUtil.class);

        DefaultEntitlementCertServiceAdapter entAdapter =
            new DefaultEntitlementCertServiceAdapter(
                mockedPKI, mockExtensionUtil, mockV3extensionUtil,
View Full Code Here

TOP

Related Classes of org.candlepin.util.X509V3ExtensionUtil$PathNode

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.