Package org.candlepin.util

Examples of org.candlepin.util.X509ExtensionUtil


        "/content/beta/rhel/$releasever/$basearch/source/SRPMS"};

    @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,
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,
                mock(EntitlementCertificateCurator.class), keyPairCurator,
View Full Code Here

        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,
                mock(EntitlementCertificateCurator.class), keyPairCurator,
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,
                mock(EntitlementCertificateCurator.class), keyPairCurator,
View Full Code Here

        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,
                mock(EntitlementCertificateCurator.class), keyPairCurator,
View Full Code Here

        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,
                mock(EntitlementCertificateCurator.class), keyPairCurator,
View Full Code Here

        pcc = mock(ProductCertificateCurator.class);
        pki = mock(PKIUtility.class);
        cc = mock(ContentCurator.class);
        Configuration config = mock(Configuration.class);
        when(config.getBoolean(ConfigProperties.ENV_CONTENT_FILTERING)).thenReturn(false);
        extUtil = new X509ExtensionUtil(config);
        dpsa = new DefaultProductServiceAdapter(pc, pcc, pki, extUtil, cc, idgen);
    }
View Full Code Here

TOP

Related Classes of org.candlepin.util.X509ExtensionUtil

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.