Package de.innovationgate.webgate.api.auth

Examples of de.innovationgate.webgate.api.auth.CertAuthCapableAuthModule


        if (domainCfg == null) {
            return false;
        }
       
        if (domainCfg.getAuthenticationSource() instanceof CertAuthCapableAuthModule) {
            CertAuthCapableAuthModule certAuthModule = (CertAuthCapableAuthModule) domainCfg.getAuthenticationSource();
            return certAuthModule.isCertAuthEnabled();
        }
       
        return false;
       
       
View Full Code Here


       
        if (cert == null) {
            return WGDatabase.ACCESSLEVEL_NOTLOGGEDIN;
        }
       
        CertAuthCapableAuthModule auth = (CertAuthCapableAuthModule) getAuthenticationModule();
       
        X509Certificate caCert = auth.getCA();
        X509CRL crl = auth.getCRL();
       
        // verify if clientCert is issued by given dbCA
        if (!CertificateValidationUtils.verify(cert, caCert)) {
            String message = "Failed login for '" + cert.getSubjectDN().getName() + "': Certificate was signed by another CA (Certificate authentication)";           
            WGFactory.getLogger().warn(message);
View Full Code Here

        }
       
        // If auth module is cert auth capable we return its status
        AuthenticationModule authModule = getAuthenticationModule();
        if (authModule instanceof CertAuthCapableAuthModule) {
            CertAuthCapableAuthModule certMod = (CertAuthCapableAuthModule) authModule;
            return certMod.isCertAuthEnabled();
        }
       
        // No cert auth
        return false;
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.auth.CertAuthCapableAuthModule

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.