Best code examples for Java 8 SSLEngine class (javax.net.ssl.SSLEngine)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 SSLEngine class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 SSLEngine examples from Open Source projects
This code example shows how to use the following methods: setEnabledCipherSuites, setEnabledProtocols, setUseClientMode
52:	sslEngine.setUseClientMode(true); 
-
58:	sslEngine.setEnabledCipherSuites(sslParameters.getCipherSuites()); 
-
63:	sslEngine.setEnabledProtocols(sslParameters.getProtocols()); 
-
66:	_sslHandler = new SslHandler(sslEngine); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setUseClientMode
35:	engine.setUseClientMode( true ); 
-
37:	ch.pipeline().addLast( "ssl", new SslHandler( engine ) ); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getSession, setUseClientMode
47:	cliEngine.setUseClientMode(true); 
-
52:	SSLSession cliSession = cliEngine.getSession(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setUseClientMode
94:	sslEngine.setUseClientMode(false); 
95:	SslHandler sslHandler = new SslHandler(sslEngine); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getSession, setUseClientMode
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
This code example shows how to use the following methods: getSession, setEnabledCipherSuites, setNeedClientAuth, setUseClientMode
60:	ssle.setUseClientMode(false); 
61:	ssle.setNeedClientAuth(SSLHelper.needAuth()); 
-
64:	ssle.setEnabledCipherSuites(SSLHelper.getSupportedKeys()); 
-
67:	SSLSession session = ssle.getSession(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setUseClientMode
58:	engine.setUseClientMode(true); 
59:	context.put(SSL_ENGINE_CONTEXT_KEY, engine); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getSSLParameters, getHandshakeSession
126:	String alias = chooseServerAlias(keyType,issuers,engine.getSSLParameters().getSNIMatchers(),engine.getHandshakeSession()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginHandshake, getSession, setNeedClientAuth, setWantClientAuth
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
This code example shows how to use the following methods: beginHandshake, getSession, setNeedClientAuth, setWantClientAuth
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
This code example shows how to use the following methods: getSession, setUseClientMode
54:	cliEngine.setUseClientMode(true); 
-
59:	SSLSession cliSession = cliEngine.getSession(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getPeerHost, getPeerPort
125:	assertNull("Incorrect host", sslE.getPeerHost()); 
126:	assertEquals("Incorrect port", 0, sslE.getPeerPort()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getPeerHost, getPeerPort
131:	assertEquals("Incorrect host", sslE.getPeerHost(), host); 
132:	assertEquals("Incorrect port", sslE.getPeerPort(), port); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getPeerHost, getPeerPort
130:	assertNull("Incorrect host", sslE.getPeerHost()); 
131:	assertEquals("Incorrect port", 0, sslE.getPeerPort()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setNeedClientAuth, setUseClientMode
152:	engine.setUseClientMode(false); 
153:	engine.setNeedClientAuth(configuration.isNeedClientAuth()); 
154:	return new SslHandler(engine); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setNeedClientAuth, setUseClientMode
164:	engine.setUseClientMode(false); 
165:	engine.setNeedClientAuth(consumer.getConfiguration().isNeedClientAuth()); 
166:	return new SslHandler(engine); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setNeedClientAuth, setUseClientMode
172:	sslEngine.setUseClientMode(false); 
173:	sslEngine.setNeedClientAuth(consumer.getConfiguration().isNeedClientAuth()); 
174:	return new SslHandler(sslEngine); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setNeedClientAuth, setUseClientMode
174:	engine.setUseClientMode(false); 
175:	engine.setNeedClientAuth(consumer.getConfiguration().isNeedClientAuth()); 
176:	return new SslHandler(engine); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: closeOutbound, getSession, wrap
141:	engineResult = sslEngine.wrap( b, outCrypt ); 
-
267:	sslEngine.closeOutbound(); 
268:	sslEngine.getSession().invalidate(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setUseClientMode
157:	engine.setUseClientMode(true); 
158:	return new SslHandler(engine); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: beginHandshake, getHandshakeStatus, getSession
56:	int appBufSize = sslEngine.getSession().getApplicationBufferSize(); 
57:	int netBufSize = sslEngine.getSession().getPacketBufferSize(); 
-
86:	sslEngine.beginHandshake(); 
87:	initHandshakeStatus = sslEngine.getHandshakeStatus(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: closeOutbound, getHandshakeStatus, getSession, wrap
1124:	server.getSession().getPacketBufferSize()+100); 
-
1132:	print(result = server.wrap(ByteBuffer.wrap(new byte[] {0}), buffer)); 
-
1143:	server.closeOutbound(); 
-
1145:	server.closeOutbound(); 
-
1149:	server.getHandshakeStatus()); 
-
1155:	print(result = server.wrap(ByteBuffer.allocate(0), buffer)); 
-
1168:	print(result = server.wrap(ByteBuffer.wrap(new byte[] {0}), buffer)); 
-
1329:	print(result = server.wrap(ByteBuffer.allocate(0), buffer)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setUseClientMode
125:	engine.setUseClientMode(true); 
126:	return new SslHandler(engine); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSession
55:	sslBufSize = engine.getSession().getPacketBufferSize(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSession
37:	this.incoming = ByteBuffer.allocate(sslEngine.getSession().getPacketBufferSize()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setNeedClientAuth, setUseClientMode
105:	serverEngine.setUseClientMode(false); 
106:	serverEngine.setNeedClientAuth(true); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setUseClientMode
141:	engine.setUseClientMode(true); 
142:	return new SslHandler(engine); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setNeedClientAuth, setUseClientMode
74:	serverEngine.setUseClientMode(false); 
75:	serverEngine.setNeedClientAuth(true); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSession
55:	sslBufSize = engine.getSession().getPacketBufferSize(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSession
55:	this.sslBufSize = engine.getSession().getApplicationBufferSize(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSession
31:	SSLSession sslSession = sslEngine.getSession(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSession, setUseClientMode
123:	tlsEngine.setUseClientMode(clientMode); 
124:	SSLSession sslSession = tlsEngine.getSession(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setUseClientMode
99:	engine.setUseClientMode(true); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getEnabledCipherSuites, getEnabledProtocols
149:	params.setCipherSuites(m_engine.getEnabledCipherSuites()); 
150:	params.setProtocols(m_engine.getEnabledProtocols()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setUseClientMode
113:	engine.setUseClientMode(true); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSession, unwrap
274:	SSLSession sslSession = sslEngine.getSession(); 
-
279:	sslEngine.unwrap(encryptedData, applicationData); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSession
55:	this.sslBufSize = engine.getSession().getApplicationBufferSize(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: closeInbound, closeOutbound
316:	sslEngine.closeInbound(); 
317:	sslEngine.closeOutbound(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setNeedClientAuth, setUseClientMode
179:	sslEngine.setUseClientMode(false); 
180:	sslEngine.setNeedClientAuth(requireClientCert); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setUseClientMode
26:	ssle.setUseClientMode(true); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setUseClientMode
102:	_engine.setUseClientMode(true); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: unwrap, wrap
162:	SSLEngineResult result = srcEngine.wrap(data, writeBuf); 
-
169:	result = dstEngine.unwrap(writeBuf, readBuf); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: wrap
14:	return sslEngine.wrap(applicationData, outgoingData); 
Full Snippet Info
4
CodeRank
See Code Examples for Java 8 SSLEngine Methods: