@Test public void testNeedClientAuth() throws NoSuchAlgorithmException, KeyManagementException { SSLContext context = SSLContext.getDefault(); TLSParams tlsParams = new TLSParams(); tlsParams.needClientAuth(true); RapidoidTLS tls = new RapidoidTLS(context, null, tlsParams); isTrue(tls.engine().getNeedClientAuth()); isFalse(tls.engine().getWantClientAuth()); }
public SSLEngine engine() { return engine; }
RapidoidTLS extends RapidoidThing { public SSLEngine engine() { return engine; } }
RapidoidTLS extends RapidoidThing { public SSLEngine engine() { return engine; } RapidoidTLS(SSLContext sslContext, RapidoidConnection conn, TLSParams tlsParams); }
RapidoidTLS extends RapidoidThing { public SSLEngine engine() { return engine; } RapidoidTLS(SSLContext sslContext, RapidoidConnection conn, TLSParams tlsParams); boolean isClosed(); SSLSession getSession(); synchronized boolean unwrapInput(); synchronized boolean wrapToOutgoing(); synchronized SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst); synchronized SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst); SSLEngine engine(); synchronized void closeInbound(); void reset(); }
RapidoidTLS extends RapidoidThing { public SSLEngine engine() { return engine; } RapidoidTLS(SSLContext sslContext, RapidoidConnection conn, TLSParams tlsParams); boolean isClosed(); SSLSession getSession(); synchronized boolean unwrapInput(); synchronized boolean wrapToOutgoing(); synchronized SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst); synchronized SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst); SSLEngine engine(); synchronized void closeInbound(); void reset(); final ByteBuffer netIn; }