1 /*2 * JBoss, Home of Professional Open Source3 *4 * Distributable under LGPL license.5 * See terms of license at gnu.org.6 */7 8 package org.jboss.security.auth.certs;9 10 import java.security.cert.X509Certificate ;11 import java.security.KeyStore ;12 13 /**14 * A X509CertificateVerifier that accepts any cert.15 * 16 * @author Scott.Stark@jboss.org17 * @version $Revision: 1.1 $18 */19 public class AnyCertVerifier implements X509CertificateVerifier20 {21 /**22 * Returns true regardless of the arguments.23 * 24 * @param cert - the X509Certificate to verifier25 * @param alias - the expected keystore alias26 * @param keyStore - the keystore for the cert27 * @param trustStore - the truststore for the cert signer28 * @return true always.29 */ 30 public boolean verify(X509Certificate cert, String alias,31 KeyStore keyStore, KeyStore trustStore)32 {33 return true;34 }35 }36