KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * JBoss, Home of Professional Open Source
3  *
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 JavaDoc;
11 import java.security.KeyStore JavaDoc;
12
13 /**
14  * A X509CertificateVerifier that accepts any cert.
15  *
16  * @author Scott.Stark@jboss.org
17  * @version $Revision: 1.1 $
18  */

19 public class AnyCertVerifier implements X509CertificateVerifier
20 {
21    /**
22     * Returns true regardless of the arguments.
23     *
24     * @param cert - the X509Certificate to verifier
25     * @param alias - the expected keystore alias
26     * @param keyStore - the keystore for the cert
27     * @param trustStore - the truststore for the cert signer
28     * @return true always.
29     */

30    public boolean verify(X509Certificate JavaDoc cert, String JavaDoc alias,
31       KeyStore JavaDoc keyStore, KeyStore JavaDoc trustStore)
32    {
33       return true;
34    }
35 }
36
Popular Tags