HAProxySSLTLVTest Class — netty Architecture
Architecture documentation for the HAProxySSLTLVTest class in HAProxySSLTLVTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 73d6ed2a_77b7_dc3e_4d14_284daf8efaff["HAProxySSLTLVTest"] 5a6aae6c_c74f_b879_b734_3a7c11b1294d["HAProxySSLTLVTest.java"] 73d6ed2a_77b7_dc3e_4d14_284daf8efaff -->|defined in| 5a6aae6c_c74f_b879_b734_3a7c11b1294d de8afabc_0e80_4248_cac0_af8b54a2b503["testClientBitmask()"] 73d6ed2a_77b7_dc3e_4d14_284daf8efaff -->|method| de8afabc_0e80_4248_cac0_af8b54a2b503
Relationship Graph
Source Code
codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxySSLTLVTest.java lines 27–68
public class HAProxySSLTLVTest {
@Test
public void testClientBitmask() throws Exception {
// 0b0000_0111
final byte allClientsEnabled = 0x7;
final HAProxySSLTLV allClientsEnabledTLV =
new HAProxySSLTLV(0, allClientsEnabled, Collections.<HAProxyTLV>emptyList(), Unpooled.buffer());
assertTrue(allClientsEnabledTLV.isPP2ClientCertConn());
assertTrue(allClientsEnabledTLV.isPP2ClientSSL());
assertTrue(allClientsEnabledTLV.isPP2ClientCertSess());
assertTrue(allClientsEnabledTLV.release());
// 0b0000_0101
final byte clientSSLandClientCertSessEnabled = 0x5;
final HAProxySSLTLV clientSSLandClientCertSessTLV =
new HAProxySSLTLV(0, clientSSLandClientCertSessEnabled, Collections.<HAProxyTLV>emptyList(),
Unpooled.buffer());
assertFalse(clientSSLandClientCertSessTLV.isPP2ClientCertConn());
assertTrue(clientSSLandClientCertSessTLV.isPP2ClientSSL());
assertTrue(clientSSLandClientCertSessTLV.isPP2ClientCertSess());
assertTrue(clientSSLandClientCertSessTLV.release());
// 0b0000_0000
final byte noClientEnabled = 0x0;
final HAProxySSLTLV noClientTlv =
new HAProxySSLTLV(0, noClientEnabled, Collections.<HAProxyTLV>emptyList(),
Unpooled.buffer());
assertFalse(noClientTlv.isPP2ClientCertConn());
assertFalse(noClientTlv.isPP2ClientSSL());
assertFalse(noClientTlv.isPP2ClientCertSess());
assertTrue(noClientTlv.release());
}
}
Source
Frequently Asked Questions
What is the HAProxySSLTLVTest class?
HAProxySSLTLVTest is a class in the netty codebase, defined in codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxySSLTLVTest.java.
Where is HAProxySSLTLVTest defined?
HAProxySSLTLVTest is defined in codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxySSLTLVTest.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free