Package org.mozilla.jss.nss
Class SSLFDProxy
java.lang.Object
org.mozilla.jss.util.NativeProxy
org.mozilla.jss.nss.PRFDProxy
org.mozilla.jss.nss.SSLFDProxy
- All Implemented Interfaces:
AutoCloseable,EventListener,SSLHandshakeCompletedListener,SSLSocketListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionintbooleanintbooleanbooleanintFields inherited from class org.mozilla.jss.util.NativeProxy
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidalertReceived(SSLAlertEvent event) voidalertSent(SSLAlertEvent event) voidintinvokeBadCertHandler(int error) intprotected voidRelease the native resources used by this proxy.voidSetClientCert(X509Certificate cert) Methods inherited from class org.mozilla.jss.util.NativeProxy
assertRegistryEmpty, clear, close, equals, hashCode, isNull, purgeAllInRegistry, toString
-
Field Details
-
clientCert
-
globalRef
-
inboundAlerts
-
inboundOffset
public int inboundOffset -
outboundAlerts
-
outboundOffset
public int outboundOffset -
needCertValidation
public boolean needCertValidation -
needBadCertValidation
public boolean needBadCertValidation -
badCertError
public int badCertError -
handshakeComplete
public boolean handshakeComplete -
certAuthHandler
-
badCertHandler
-
-
Constructor Details
-
SSLFDProxy
public SSLFDProxy(byte[] pointer)
-
-
Method Details
-
SetClientCert
- Throws:
IllegalArgumentException
-
releaseNativeResources
Description copied from class:NativeProxyRelease the native resources used by this proxy. Subclasses of NativeProxy must define this method to clean up data structures in C code that are referenced by this proxy. releaseNativeResources() will usually be implemented as a native method.You don't call this method; NativeProxy.finalize() or close() calls it for you.
If you free these resources explicitly, call clear(); instead.- Overrides:
releaseNativeResourcesin classPRFDProxy- Throws:
Exception
-
invokeCertAuthHandler
public int invokeCertAuthHandler() -
invokeBadCertHandler
public int invokeBadCertHandler(int error) -
handshakeCompleted
- Specified by:
handshakeCompletedin interfaceSSLHandshakeCompletedListener
-
alertReceived
- Specified by:
alertReceivedin interfaceSSLSocketListener
-
alertSent
- Specified by:
alertSentin interfaceSSLSocketListener
-