Package org.jgroups.protocols
Class CertficateCNMatcher
java.lang.Object
org.jgroups.protocols.CertficateCNMatcher
- All Implemented Interfaces:
SSL_KEY_EXCHANGE.SessionVerifier
Sample implementation of
SSL_KEY_EXCHANGE.SessionVerifier- Since:
- 4.0.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after creation with session_verifier_argvoidverify(SSLSession session) Called to verify that the session is correct, e.g.
-
Field Details
-
cn_name
-
pattern
-
-
Constructor Details
-
CertficateCNMatcher
public CertficateCNMatcher()
-
-
Method Details
-
init
Description copied from interface:SSL_KEY_EXCHANGE.SessionVerifierCalled after creation with session_verifier_arg- Specified by:
initin interfaceSSL_KEY_EXCHANGE.SessionVerifier
-
verify
Description copied from interface:SSL_KEY_EXCHANGE.SessionVerifierCalled to verify that the session is correct, e.g. by matching the peer's certificate-CN. Needs to throw a SecurityException if not- Specified by:
verifyin interfaceSSL_KEY_EXCHANGE.SessionVerifier- Throws:
SecurityException
-