org.mozilla.jss.tests

Class TestCertificateApprovalCallback

Implemented Interfaces:
SSLCertificateApprovalCallback

public class TestCertificateApprovalCallback
extends java.lang.Object
implements SSLCertificateApprovalCallback

This is a test implementation of the certificate approval callback which gets invoked when the server presents a certificate which is not trusted by the client. Note this implementation accepts all certificates!

Method Summary

boolean
approve(X509Certificate servercert, SSLCertificateApprovalCallback.ValidityStatus status)

Method Details

approve

public boolean approve(X509Certificate servercert,
                       SSLCertificateApprovalCallback.ValidityStatus status)
Specified by:
approve in interface SSLCertificateApprovalCallback