01: package org.bouncycastle.crypto.tls;
02:
03: import org.bouncycastle.asn1.x509.X509CertificateStructure;
04:
05: /**
06: * A certificate verifyer, that will always return true.
07: * <pre>
08: * DO NOT USE THIS FILE UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING.
09: * </pre>
10: */
11: public class AlwaysValidVerifyer implements CertificateVerifyer {
12:
13: /**
14: * Return true.
15: *
16: * @see org.bouncycastle.crypto.tls.CertificateVerifyer#isValid(org.bouncycastle.asn1.x509.X509CertificateStructure[])
17: */
18: public boolean isValid(X509CertificateStructure[] certs) {
19: return true;
20: }
21:
22: }
|