Lines Matching defs:sse
129 SSLEngine sse = getEngine();
131 String[] res = sse.getSupportedProtocols();
141 SSLEngine sse = getEngine();
142 String[] pr = sse.getSupportedProtocols();
144 sse.setEnabledProtocols(pr);
145 String[] res = sse.getEnabledProtocols();
151 sse.setEnabledProtocols(null);
161 SSLEngine sse = getEngine();
163 String[] res = sse.getSupportedCipherSuites();
173 SSLEngine sse = getEngine();
174 String[] st = sse.getSupportedCipherSuites();
176 sse.setEnabledCipherSuites(st);
177 String[] res = sse.getEnabledCipherSuites();
183 sse.setEnabledCipherSuites(null);
194 SSLEngine sse = getEngine();
196 assertTrue(sse.getEnableSessionCreation());
197 sse.setEnableSessionCreation(false);
198 assertFalse(sse.getEnableSessionCreation());
199 sse.setEnableSessionCreation(true);
200 assertTrue(sse.getEnableSessionCreation());
211 SSLEngine sse = getEngine();
213 sse.setNeedClientAuth(false);
214 assertFalse(sse.getNeedClientAuth());
215 sse.setNeedClientAuth(true);
216 assertTrue(sse.getNeedClientAuth());
227 SSLEngine sse = getEngine();
228 sse.setWantClientAuth(false);
229 assertFalse(sse.getWantClientAuth());
230 sse.setWantClientAuth(true);
231 assertTrue(sse.getWantClientAuth());
238 SSLEngine sse = getEngine();
240 sse.beginHandshake();
244 sse = getEngine("new host", 1080);
246 sse.beginHandshake();
250 sse = getEngine();
251 sse.setUseClientMode(true);
252 sse.beginHandshake();
260 SSLEngine sse = getEngine();
261 sse.setUseClientMode(false);
262 assertFalse(sse.getUseClientMode());
263 sse.setUseClientMode(true);
264 assertTrue(sse.getUseClientMode());
266 sse = getEngine(null, 1080);
267 sse.setUseClientMode(true);
268 sse.beginHandshake();
270 sse.setUseClientMode(false);
280 SSLEngine sse = getEngine();
281 assertNotNull(sse.getSession());
288 SSLEngine sse = getEngine();
289 assertEquals(sse.getHandshakeStatus().toString(), "NOT_HANDSHAKING");
290 sse.setUseClientMode(true);
291 sse.beginHandshake();
292 assertEquals(sse.getHandshakeStatus().toString(), "NEED_WRAP");
299 SSLEngine sse = getEngine();
300 assertNull(sse.getDelegatedTask());
332 SSLEngine sse = getEngine(host, port);
333 sse.setUseClientMode(true);
336 sse.unwrap(bb, bbA, -1, 3);
341 sse.unwrap(bb, bbA, 0, -3);
346 sse.unwrap(bb, bbA, bbA.length + 1, bbA.length);
351 sse.unwrap(bb, bbA, 0, bbA.length + 1);
369 SSLEngine sse = getEngine(host, port);
370 sse.setUseClientMode(true);
373 sse.unwrap(bb, bbA, 0, bbA.length);
392 SSLEngine sse = getEngine(host, port);
393 sse.setUseClientMode(true);
396 sse.unwrap(bN, bbA, 0, 3);
401 sse.unwrap(bb, bbAN, 0, 3);
406 sse.unwrap(bb, bbN, 0, 0);
411 sse.unwrap(bN, bbN, 0, 0);
428 SSLEngine sse = getEngine(host, port);
431 SSLEngineResult result = sse.unwrap(bb, bbA, 0, bbA.length);
447 SSLEngine sse = getEngine(host, port);
448 sse.setUseClientMode(true);
450 SSLEngineResult res = sse.unwrap(bb, bbA, 0, bbA.length);
473 SSLEngine sse = getEngine(host, port);
474 sse.setUseClientMode(true);
477 sse.wrap(bbA, -1, 3, bb);
482 sse.wrap(bbA, 0, -3, bb);
487 sse.wrap(bbA, bbA.length + 1, bbA.length, bb);
492 sse.wrap(bbA, 0, bbA.length + 1, bb);
508 SSLEngine sse = getEngine(host, port);
509 sse.setUseClientMode(true);
512 sse.wrap(bbA, 0, bbA.length, bb);
555 SSLEngine sse = getEngine(host, port);
558 SSLEngineResult result = sse.wrap(bbA, 0, bbA.length, bb);
573 SSLEngine sse = getEngine(host, port);
574 sse.setUseClientMode(true);
576 SSLEngineResult result = sse.wrap(bbA, 0, bbA.length, bb);
587 SSLEngine sse = getEngine();
589 assertFalse(sse.isOutboundDone());
590 sse.closeOutbound();
591 assertTrue(sse.isOutboundDone());
599 SSLEngine sse = getEngine();
601 assertFalse(sse.isInboundDone());
602 sse.closeInbound();
603 assertTrue(sse.isInboundDone());
633 SSLEngine sse = getEngine(host, port);
634 sse.setUseClientMode(true);
637 sse.unwrap(bbs, bbd);
657 SSLEngine sse = getEngine(host, port);
658 sse.setUseClientMode(true);
661 sse.unwrap(bbsN, bbd);
667 sse.unwrap(bbs, bbdN);
673 sse.unwrap(bbsN, bbdN);
688 SSLEngine sse = getEngine(host, port);
691 sse.unwrap(bbs, bbd);
705 SSLEngine sse = getEngine(host, port);
706 sse.setUseClientMode(true);
708 SSLEngineResult res = sse.unwrap(bbs, bbd);
741 SSLEngine sse = getEngine(host, port);
742 sse.setUseClientMode(true);
745 sse.unwrap(bbs, bbA);
763 SSLEngine sse = getEngine(host, port);
764 sse.setUseClientMode(true);
767 sse.unwrap(bN, bbA);
773 sse.unwrap(bb, bbAN);
779 sse.unwrap(bb, bbN);
785 sse.unwrap(bN, bbAN);
800 SSLEngine sse = getEngine(host, port);
803 sse.unwrap(bbs, bbd);
817 SSLEngine sse = getEngine(host, port);
818 sse.setUseClientMode(true);
820 SSLEngineResult res = sse.unwrap(bbs, bbd);
842 SSLEngine sse = getEngine(host, port);
843 sse.setUseClientMode(true);
846 sse.wrap(bbs, bbd);
863 SSLEngine sse = getEngine(host, port);
864 sse.setUseClientMode(true);
867 sse.wrap(bbsN, bbd);
873 sse.wrap(bbs, bbdN);
879 sse.wrap(bbsN, bbdN);
894 SSLEngine sse = getEngine(host, port);
897 SSLEngineResult result = sse.wrap(bbs, bbd);
909 SSLEngine sse = getEngine(host, port);
910 sse.setUseClientMode(true);
912 SSLEngineResult res = sse.wrap(bb, ByteBuffer.allocate(10));
941 SSLEngine sse = getEngine(host, port);
942 sse.setUseClientMode(true);
945 sse.wrap(bbA, bb);
962 SSLEngine sse = getEngine(host, port);
963 sse.setUseClientMode(true);
966 sse.wrap(bbA, bN);
972 sse.wrap(bbAN, bb);
978 sse.wrap(bbAN, bN);
993 SSLEngine sse = getEngine(host, port);
995 SSLEngineResult result = sse.wrap(bbA, bb);
1007 SSLEngine sse = getEngine(host, port);
1008 sse.setUseClientMode(true);
1010 SSLEngineResult res = sse.wrap(bbA, bb);