com.teamdev.jxbrowser.ssl
Interface CertificateManager
public interface CertificateManager
The manager of bad certificates
- See Also:
BadCertificateHandler
,
Certificate
NOT_TRUST
static final long NOT_TRUST
- See Also:
- Constant Field Values
TRUST
static final long TRUST
- See Also:
- Constant Field Values
showTrustCertDialog
long showTrustCertDialog(WebBrowser browser,
Certificate cert)
- Show trust bad certificate dialog.
- Parameters:
browser
- the Web browser instance, you can get it from
BadCertificateHandler.badCertificateSended(WebBrowser, java.net.URI, Certificate)
cert
- the certificate, you can get it from
BadCertificateHandler.badCertificateSended(WebBrowser, java.net.URI, Certificate)
- Returns:
- trust type
trustCertificate
void trustCertificate(java.lang.String host,
int port,
Certificate cert,
long trustType,
boolean useAsTemp)
- Add exception to trust current bad certificate.
- Parameters:
host
- certificate host (you can get it from URL )port
- port of connection (you can get it from URL )cert
- the certificate, you can get it from
BadCertificateHandler.badCertificateSended(WebBrowser, java.net.URI, Certificate)
trustType
- the type of trust. You can get it from result of {&link
showTrustCertDialog} or set TYPE_WEB_TRUST or
TYPE_TRUST_FOR_ALLuseAsTemp
- use this certificate for current session only.