testClientBitmask() — netty Function Reference
Architecture documentation for the testClientBitmask() function in HAProxySSLTLVTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD de8afabc_0e80_4248_cac0_af8b54a2b503["testClientBitmask()"] 73d6ed2a_77b7_dc3e_4d14_284daf8efaff["HAProxySSLTLVTest"] de8afabc_0e80_4248_cac0_af8b54a2b503 -->|defined in| 73d6ed2a_77b7_dc3e_4d14_284daf8efaff style de8afabc_0e80_4248_cac0_af8b54a2b503 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxySSLTLVTest.java lines 29–67
@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());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testClientBitmask() do?
testClientBitmask() is a function in the netty codebase, defined in codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxySSLTLVTest.java.
Where is testClientBitmask() defined?
testClientBitmask() is defined in codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxySSLTLVTest.java at line 29.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free