Package org.apache.cxf.xkms.x509.validator

Examples of org.apache.cxf.xkms.x509.validator.DirectTrustValidator


                                                   LdapSchemaConfig ldapSchemaConfig, String rootDN,
                                                   String storageDir) {
        if ("ldap".equals(type)) {
            return new LdapCertificateRepo(ldapSearch, ldapSchemaConfig, rootDN);
        } else if ("file".equals(type)) {
            return new FileCertificateRepo(storageDir);
        } else {
            throw new RuntimeException("Invalid repo type " + type + ". Valid types are file, ldap");
        }
    }
View Full Code Here


    @Before
    public void setUpCertificateRepo() throws CertificateException {
        File storageDir = new File("target/teststore_trusted_authority_validator");
        FileUtils.removeDir(storageDir);
        storageDir.mkdirs();
        certificateRepo = new FileCertificateRepo("target/teststore_trusted_authority_validator");

        UseKeyWithType rootKey = new UseKeyWithType();
        rootKey.setApplication(Applications.PKIX.getUri());
        String subjectDN = certificateRoot.getSubjectX500Principal().getName();
        rootKey.setIdentifier(subjectDN);
View Full Code Here

    public static CertificateRepo createRepository(String type, LdapSearch ldapSearch,
                                                   LdapSchemaConfig ldapSchemaConfig, String rootDN,
                                                   String storageDir) {
        if ("ldap".equals(type)) {
            return new LdapCertificateRepo(ldapSearch, ldapSchemaConfig, rootDN);
        } else if ("file".equals(type)) {
            return new FileCertificateRepo(storageDir);
        } else {
            throw new RuntimeException("Invalid repo type " + type + ". Valid types are file, ldap");
        }
View Full Code Here

TOP

Related Classes of org.apache.cxf.xkms.x509.validator.DirectTrustValidator

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.