KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > security > auth > certs > X509CertificateVerifier


1 /*
2  * JBoss, Home of Professional Open Source
3  *
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 JavaDoc;
10 import java.security.KeyStore JavaDoc;
11
12 /**
13  * A verifier for X509Certificate used by authentication layers.
14  *
15  * @see org.jboss.security.auth.spi.BaseCertLoginModule
16  *
17  * @author Scott.Stark@jboss.org
18  * @version $Revision: 1.1 $
19  */

20 public interface X509CertificateVerifier
21 {
22    /**
23     * Validate a cert.
24     *
25     * @param cert - the X509Certificate to verifier
26     * @param alias - the expected keystore alias
27     * @param keyStore - the keystore for the cert
28     * @param trustStore - the truststore for the cert signer
29     * @return true if the cert is valid, false otherwise
30     */

31    public boolean verify(X509Certificate JavaDoc cert, String JavaDoc alias,
32       KeyStore JavaDoc keyStore, KeyStore JavaDoc trustStore);
33 }
34
Popular Tags