- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 253 for 0x61 (0.02 seconds)
-
src/test/java/jcifs/netbios/NameTest.java
// Check encoded name (TEST -> encoded as pairs) // T = 0x54 -> upper nibble: 0x5 -> 0x46 (F), lower nibble: 0x4 -> 0x45 (E) assertEquals('F', dst[1]); // (0x54 >> 4) + 0x41 = 0x46 = 'F' assertEquals('E', dst[2]); // (0x54 & 0x0F) + 0x41 = 0x45 = 'E' // Check padding (positions 8-30 should be 'CA' pairs for spaces) for (int i = 8; i < 31; i += 2) { assertEquals('C', dst[i + 1]);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.4K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacDataInputStreamTest.java
public void testReadSid() throws IOException, PACDecodingException { // A simple SID: S-1-1-0 byte[] data = new byte[] { 0x01, 0x00, 0x00, 0x00, // sidSize = 1 0x01, // revision 0x01, // sub-authority count 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, // authority 0x00, 0x00, 0x00, 0x00 // sub-authority 1 }; PacDataInputStream pdis = createInputStream(data);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/dtyp/ACETest.java
// Add minimal SID data (S-1-1-0 - Everyone) testBuffer[8] = 0x01; // Revision testBuffer[9] = 0x01; // Sub-authority count testBuffer[10] = 0x00; // Identifier authority testBuffer[11] = 0x00; testBuffer[12] = 0x00; testBuffer[13] = 0x00; testBuffer[14] = 0x00; testBuffer[15] = 0x01; testBuffer[16] = 0x00; // Sub-authority testBuffer[17] = 0x00;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.6K bytes - Click Count (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
// Test with a basic byte array byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 }; ByteEncodable encodable = new ByteEncodable(data, 1, 3); // Verify size assertEquals(3, encodable.size(), "Size should be equal to the specified length"); } @Test void testEncodeBasic() { // Test basic encoding byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 };Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java
int[] attributeFlags = { 0x01, // FILE_ATTRIBUTE_READONLY 0x02, // FILE_ATTRIBUTE_HIDDEN 0x04, // FILE_ATTRIBUTE_SYSTEM 0x10, // FILE_ATTRIBUTE_DIRECTORY 0x20, // FILE_ATTRIBUTE_ARCHIVE 0x80, // FILE_ATTRIBUTE_NORMAL 0x100, // FILE_ATTRIBUTE_TEMPORARY 0x21, // Combination: ARCHIVE | READONLY
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java
int dstIndex = 0; int bytesWritten = notifyChange.writeSetupWireFormat(dst, dstIndex); assertEquals(8, bytesWritten); // Verify watchTree flag is set to 0x01 assertEquals(0x01, dst[dstIndex + 6]); } @ParameterizedTest @DisplayName("Test writeSetupWireFormat with various FID values") @ValueSource(ints = { 0x0000, 0x0001, 0x7FFF, 0xFFFF, 0x1234, 0xABCD })Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.4K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java
closeHandleCaptor = ArgumentCaptor.forClass(MsrpcSamrCloseHandle.class); } @Test void constructor_shouldOpenDomainSuccessfully() throws IOException { // Arrange int access = 0x01; // Example access value // Simulate successful RPC call doAnswer(invocation -> { MsrpcSamrOpenDomain rpc = invocation.getArgument(0); rpc.retval = 0; // Success return null;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
class ToStringTests { @ParameterizedTest @DisplayName("Should format command name correctly") @ValueSource(shorts = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12 }) void testToStringCommandNames(short command) { testMessage.setCommand(command); String result = testMessage.toString();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 39.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
@DisplayName("Should calculate size for multiple hash algorithms with salt") void testSizeWithMultipleHashAlgosAndSalt() { int[] hashAlgos = { 0x01, 0x02, 0x03 }; byte[] salt = { 0x01, 0x02, 0x03, 0x04, 0x05 }; PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); assertEquals(15, context.size()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 34K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java
ASN1EncodableVector elementVector = new ASN1EncodableVector(); elementVector.add(new DERTaggedObject(0, new ASN1Integer(1))); // authType elementVector.add(new DERTaggedObject(1, new DEROctetString(new byte[] { 0x01, 0x02 }))); // authData authVector.add(new DERSequence(elementVector)); byte[] token = new DERSequence(authVector).getEncoded(); Map<Integer, KerberosKey> keys = new HashMap<>();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9K bytes - Click Count (0)