Code examples for SSLEngine

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
52:	sslEngine.setUseClientMode(true); 
-
58:	sslEngine.setEnabledCipherSuites(sslParameters.getCipherSuites()); 
-
63:	sslEngine.setEnabledProtocols(sslParameters.getProtocols()); 
-
66:	_sslHandler = new SslHandler(sslEngine); 
Full Snippet Info
8
CodeRank
35:	engine.setUseClientMode( true ); 
-
37:	ch.pipeline().addLast( "ssl", new SslHandler( engine ) ); 
Full Snippet Info
7
CodeRank
47:	cliEngine.setUseClientMode(true); 
-
52:	SSLSession cliSession = cliEngine.getSession(); 
Full Snippet Info
6
CodeRank
94:	sslEngine.setUseClientMode(false); 
95:	SslHandler sslHandler = new SslHandler(sslEngine); 
Full Snippet Info
6
CodeRank
38:	sslEngine.setUseClientMode(true); 
39:	in = ByteBuffer.allocate(sslEngine.getSession().getPacketBufferSize()); 
40:	unwrappedIn = ByteBuffer.allocate(sslEngine.getSession().getApplicationBufferSize()); 
41:	out = ByteBuffer.allocate(sslEngine.getSession().getPacketBufferSize()); 
Full Snippet Info
6
CodeRank
60:	ssle.setUseClientMode(false); 
61:	ssle.setNeedClientAuth(SSLHelper.needAuth()); 
-
64:	ssle.setEnabledCipherSuites(SSLHelper.getSupportedKeys()); 
-
67:	SSLSession session = ssle.getSession(); 
Full Snippet Info
6
CodeRank
58:	engine.setUseClientMode(true); 
59:	context.put(SSL_ENGINE_CONTEXT_KEY, engine); 
Full Snippet Info
5
CodeRank
126:	String alias = chooseServerAlias(keyType,issuers,engine.getSSLParameters().getSNIMatchers(),engine.getHandshakeSession()); 
Full Snippet Info
5
CodeRank
124:	netBBSize = tlsEngine.getSession().getPacketBufferSize(); 
125:	appBBSize = tlsEngine.getSession().getApplicationBufferSize(); 
-
138:	tlsEngine.beginHandshake(); 
-
147:	tlsEngine.setNeedClientAuth(true); 
-
153:	tlsEngine.setWantClientAuth(true); 
Full Snippet Info
5
CodeRank
124:	netBBSize = tlsEngine.getSession().getPacketBufferSize(); 
125:	appBBSize = tlsEngine.getSession().getApplicationBufferSize(); 
-
138:	tlsEngine.beginHandshake(); 
-
147:	tlsEngine.setNeedClientAuth(true); 
-
153:	tlsEngine.setWantClientAuth(true); 
Full Snippet Info
5
CodeRank
54:	cliEngine.setUseClientMode(true); 
-
59:	SSLSession cliSession = cliEngine.getSession(); 
Full Snippet Info
5
CodeRank
125:	assertNull("Incorrect host", sslE.getPeerHost()); 
126:	assertEquals("Incorrect port", 0, sslE.getPeerPort()); 
Full Snippet Info
5
CodeRank
131:	assertEquals("Incorrect host", sslE.getPeerHost(), host); 
132:	assertEquals("Incorrect port", sslE.getPeerPort(), port); 
Full Snippet Info
5
CodeRank
130:	assertNull("Incorrect host", sslE.getPeerHost()); 
131:	assertEquals("Incorrect port", 0, sslE.getPeerPort()); 
Full Snippet Info
5
CodeRank
152:	engine.setUseClientMode(false); 
153:	engine.setNeedClientAuth(configuration.isNeedClientAuth()); 
154:	return new SslHandler(engine); 
Full Snippet Info
5
CodeRank
164:	engine.setUseClientMode(false); 
165:	engine.setNeedClientAuth(consumer.getConfiguration().isNeedClientAuth()); 
166:	return new SslHandler(engine); 
Full Snippet Info
5
CodeRank
172:	sslEngine.setUseClientMode(false); 
173:	sslEngine.setNeedClientAuth(consumer.getConfiguration().isNeedClientAuth()); 
174:	return new SslHandler(sslEngine); 
Full Snippet Info
5
CodeRank
174:	engine.setUseClientMode(false); 
175:	engine.setNeedClientAuth(consumer.getConfiguration().isNeedClientAuth()); 
176:	return new SslHandler(engine); 
Full Snippet Info
5
CodeRank
141:	engineResult = sslEngine.wrap( b, outCrypt ); 
-
267:	sslEngine.closeOutbound(); 
268:	sslEngine.getSession().invalidate(); 
Full Snippet Info
5
CodeRank
56:	int appBufSize = sslEngine.getSession().getApplicationBufferSize(); 
57:	int netBufSize = sslEngine.getSession().getPacketBufferSize(); 
-
86:	sslEngine.beginHandshake(); 
87:	initHandshakeStatus = sslEngine.getHandshakeStatus(); 
Full Snippet Info
5
CodeRank