1 /*2 * JBoss, Home of Professional Open Source3 *4 * Distributable under LGPL license.5 * See terms of license at gnu.org.6 */7 package org.jboss.security.auth.certs;8 9 import java.security.cert.X509Certificate ;10 import java.security.KeyStore ;11 12 /**13 * A verifier for X509Certificate used by authentication layers.14 * 15 * @see org.jboss.security.auth.spi.BaseCertLoginModule16 * 17 * @author Scott.Stark@jboss.org18 * @version $Revision: 1.1 $19 */20 public interface X509CertificateVerifier21 {22 /**23 * Validate a cert.24 * 25 * @param cert - the X509Certificate to verifier26 * @param alias - the expected keystore alias27 * @param keyStore - the keystore for the cert28 * @param trustStore - the truststore for the cert signer29 * @return true if the cert is valid, false otherwise30 */ 31 public boolean verify(X509Certificate cert, String alias,32 KeyStore keyStore, KeyStore trustStore);33 }34