org.jboss.security.auth.certs
Interface X509CertificateVerifier

All Known Implementing Classes:
AnyCertVerifier (src)

public interface X509CertificateVerifier

A verifier for X509Certificate used by authentication layers.

See Also:
BaseCertLoginModule (src)

Method Summary
 boolean verify(java.security.cert.X509Certificate cert, java.lang.String alias, java.security.KeyStore keyStore, java.security.KeyStore trustStore)
          Validate a cert.
 

Method Detail

verify

public boolean verify(java.security.cert.X509Certificate cert,
                      java.lang.String alias,
                      java.security.KeyStore keyStore,
                      java.security.KeyStore trustStore)
Validate a cert.

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 if the cert is valid, false otherwise