Lines Matching defs:sse
147 SSLEngine sse = getEngine();
149 String[] res = sse.getSupportedProtocols();
163 SSLEngine sse = getEngine();
164 String[] pr = sse.getSupportedProtocols();
166 sse.setEnabledProtocols(pr);
167 String[] res = sse.getEnabledProtocols();
175 sse.setEnabledProtocols(null);
187 SSLEngine sse = getEngine();
189 String[] res = sse.getSupportedCipherSuites();
203 SSLEngine sse = getEngine();
204 String[] st = sse.getSupportedCipherSuites();
206 sse.setEnabledCipherSuites(st);
207 String[] res = sse.getEnabledCipherSuites();
215 sse.setEnabledCipherSuites(null);
228 SSLEngine sse = getEngine();
230 assertTrue(sse.getEnableSessionCreation());
231 sse.setEnableSessionCreation(false);
232 assertFalse(sse.getEnableSessionCreation());
233 sse.setEnableSessionCreation(true);
234 assertTrue(sse.getEnableSessionCreation());
246 SSLEngine sse = getEngine();
248 sse.setNeedClientAuth(false);
249 assertFalse(sse.getNeedClientAuth());
250 sse.setNeedClientAuth(true);
251 assertTrue(sse.getNeedClientAuth());
263 SSLEngine sse = getEngine();
265 sse.setWantClientAuth(false);
266 assertFalse(sse.getWantClientAuth());
267 sse.setWantClientAuth(true);
268 assertTrue(sse.getWantClientAuth());
279 SSLEngine sse = getEngine();
281 sse.beginHandshake();
288 sse = getEngine("new host", 1080);
290 sse.beginHandshake();
297 sse = getEngine();
299 sse.setUseClientMode(true);
300 sse.beginHandshake();
313 SSLEngine sse = getEngine();
315 sse.setUseClientMode(false);
316 assertFalse(sse.getUseClientMode());
317 sse.setUseClientMode(true);
318 assertTrue(sse.getUseClientMode());
324 sse = getEngine(null, 1080);
325 sse.setUseClientMode(true);
326 sse.beginHandshake();
328 sse.setUseClientMode(false);
343 SSLEngine sse = getEngine();
345 assertNotNull(sse.getSession());
356 SSLEngine sse = getEngine();
358 assertEquals(sse.getHandshakeStatus().toString(), "NOT_HANDSHAKING");
359 sse.setUseClientMode(true);
360 sse.beginHandshake();
361 assertEquals(sse.getHandshakeStatus().toString(), "NEED_WRAP");
373 SSLEngine sse = getEngine();
375 assertNull(sse.getDelegatedTask());
414 SSLEngine sse = getEngine(host, port);
415 sse.setUseClientMode(true);
418 sse.unwrap(bb, bbA, -1, 3);
424 sse.unwrap(bb, bbA, 0, -3);
430 sse.unwrap(bb, bbA, bbA.length + 1, bbA.length);
436 sse.unwrap(bb, bbA, 0, bbA.length + 1);
456 SSLEngine sse = getEngine(host, port);
457 sse.setUseClientMode(true);
460 sse.unwrap(bb, bbA, 0, bbA.length);
483 SSLEngine sse = getEngine(host, port);
484 sse.setUseClientMode(true);
487 sse.unwrap(bN, bbA, 0, 3);
496 sse.unwrap(bb, bbAN, 0, 3);
505 sse.unwrap(bb, bbN, 0, 0);
514 sse.unwrap(bN, bbN, 0, 0);
537 SSLEngine sse = getEngine(host, port);
540 sse.unwrap(bb, bbA, 0, bbA.length);
559 SSLEngine sse = getEngine(host, port);
560 sse.setUseClientMode(true);
563 SSLEngineResult res = sse.unwrap(bb, bbA, 0, bbA.length);
590 SSLEngine sse = getEngine(host, port);
591 sse.setUseClientMode(true);
594 sse.wrap(bbA, -1, 3, bb);
600 sse.wrap(bbA, 0, -3, bb);
606 sse.wrap(bbA, bbA.length + 1, bbA.length, bb);
612 sse.wrap(bbA, 0, bbA.length + 1, bb);
629 SSLEngine sse = getEngine(host, port);
630 sse.setUseClientMode(true);
633 sse.wrap(bbA, 0, bbA.length, bb);
685 SSLEngine sse = getEngine(host, port);
688 sse.wrap(bbA, 0, bbA.length, bb);
704 SSLEngine sse = getEngine(host, port);
705 sse.setUseClientMode(true);
708 sse.wrap(bbA, 0, bbA.length, bb);
720 SSLEngine sse = getEngine();
723 assertFalse(sse.isOutboundDone());
724 sse.closeOutbound();
725 assertTrue(sse.isOutboundDone());
737 SSLEngine sse = getEngine();
740 assertFalse(sse.isInboundDone());
741 sse.closeInbound();
742 assertTrue(sse.isInboundDone());
776 SSLEngine sse = getEngine(host, port);
777 sse.setUseClientMode(true);
780 sse.unwrap(bbs, bbd);
801 SSLEngine sse = getEngine(host, port);
802 sse.setUseClientMode(true);
805 sse.unwrap(bbsN, bbd);
815 sse.unwrap(bbs, bbdN);
825 sse.unwrap(bbsN, bbdN);
845 SSLEngine sse = getEngine(host, port);
848 sse.unwrap(bbs, bbd);
865 SSLEngine sse = getEngine(host, port);
866 sse.setUseClientMode(true);
869 SSLEngineResult res = sse.unwrap(bbs, bbd);
907 SSLEngine sse = getEngine(host, port);
908 sse.setUseClientMode(true);
911 sse.unwrap(bbs, bbA);
933 SSLEngine sse = getEngine(host, port);
934 sse.setUseClientMode(true);
937 sse.unwrap(bN, bbA);
947 sse.unwrap(bb, bbAN);
957 sse.unwrap(bb, bbN);
967 sse.unwrap(bN, bbAN);
987 SSLEngine sse = getEngine(host, port);
990 sse.unwrap(bbs, bbd);
1007 SSLEngine sse = getEngine(host, port);
1008 sse.setUseClientMode(true);
1011 SSLEngineResult res = sse.unwrap(bbs, bbd);
1036 SSLEngine sse = getEngine(host, port);
1037 sse.setUseClientMode(true);
1040 sse.wrap(bbs, bbd);
1061 SSLEngine sse = getEngine(host, port);
1062 sse.setUseClientMode(true);
1065 sse.wrap(bbsN, bbd);
1075 sse.wrap(bbs, bbdN);
1085 sse.wrap(bbsN, bbdN);
1105 SSLEngine sse = getEngine(host, port);
1108 sse.wrap(bbs, bbd);
1124 SSLEngine sse = getEngine(host, port);
1125 sse.setUseClientMode(true);
1128 SSLEngineResult res = sse.wrap(bb, ByteBuffer.allocate(10));
1166 SSLEngine sse = getEngine(host, port);
1167 sse.setUseClientMode(true);
1170 sse.wrap(bbA, bb);
1191 SSLEngine sse = getEngine(host, port);
1192 sse.setUseClientMode(true);
1195 sse.wrap(bbA, bN);
1205 sse.wrap(bbAN, bb);
1215 sse.wrap(bbAN, bN);
1235 SSLEngine sse = getEngine(host, port);
1238 sse.wrap(bbA, bb);
1255 SSLEngine sse = getEngine(host, port);
1256 sse.setUseClientMode(true);
1259 SSLEngineResult res = sse.wrap(bbA, bb);