Package org.jgroups.protocols
Class CertficateCNMatcher
- java.lang.Object
-
- org.jgroups.protocols.CertficateCNMatcher
-
- All Implemented Interfaces:
SSL_KEY_EXCHANGE.SessionVerifier
public class CertficateCNMatcher extends java.lang.Object implements SSL_KEY_EXCHANGE.SessionVerifier
Sample implementation ofSSL_KEY_EXCHANGE.SessionVerifier
- Since:
- 4.0.6
- Author:
- Bela Ban
-
-
Constructor Summary
Constructors Constructor Description CertficateCNMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(java.lang.String arg)
Called after creation with session_verifier_argvoid
verify(javax.net.ssl.SSLSession session)
Called to verify that the session is correct, e.g.
-
-
-
Method Detail
-
init
public void init(java.lang.String arg)
Description copied from interface:SSL_KEY_EXCHANGE.SessionVerifier
Called after creation with session_verifier_arg- Specified by:
init
in interfaceSSL_KEY_EXCHANGE.SessionVerifier
-
verify
public void verify(javax.net.ssl.SSLSession session) throws java.lang.SecurityException
Description copied from interface:SSL_KEY_EXCHANGE.SessionVerifier
Called 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:
verify
in interfaceSSL_KEY_EXCHANGE.SessionVerifier
- Throws:
java.lang.SecurityException
-
-