org.jboss.security.auth.certs
Class AnyCertVerifier

java.lang.Object
  extended byorg.jboss.security.auth.certs.AnyCertVerifier
All Implemented Interfaces:
X509CertificateVerifier (src)

public class AnyCertVerifier
extends java.lang.Object
implements X509CertificateVerifier (src)

A X509CertificateVerifier that accepts any cert.


Constructor Summary
AnyCertVerifier()
           
 
Method Summary
 boolean verify(java.security.cert.X509Certificate cert, java.lang.String alias, java.security.KeyStore keyStore, java.security.KeyStore trustStore)
          Returns true regardless of the arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyCertVerifier

public AnyCertVerifier()
Method Detail

verify

public boolean verify(java.security.cert.X509Certificate cert,
                      java.lang.String alias,
                      java.security.KeyStore keyStore,
                      java.security.KeyStore trustStore)
Returns true regardless of the arguments.

Specified by:
verify in interface X509CertificateVerifier (src)
Parameters:
cert - - the X509Certificate to verifier
alias - - the expected keystore alias
keyStore - - the keystore for the cert
trustStore - - the truststore for the cert signer
Returns:
true always.