org.mozilla.jss.tests

Class TestCertificateApprovalCallback

public class TestCertificateApprovalCallback extends 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
booleanapprove(X509Certificate servercert, SSLCertificateApprovalCallback.ValidityStatus status)

Method Detail

approve

public boolean approve(X509Certificate servercert, SSLCertificateApprovalCallback.ValidityStatus status)