Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 406 for getByte (0.04 sec)

  1. compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

        @Override
        public void setVersion(String version) {
            this.version = version;
            setBaseVersionInternal(version);
            versionRange = null;
        }
    
        @Override
        public String getType() {
            return type;
        }
    
        @Override
        public void setFile(File file) {
            this.file = file;
        }
    
        @Override
        public File getFile() {
            return file;
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbNamedPipeTest.java

                SmbNamedPipe pipe = new SmbNamedPipe(url, SmbPipeResource.PIPE_TYPE_RDWR, ctx());
    
                // Assert: type is named pipe and pipe type preserved
                assertEquals(SmbConstants.TYPE_NAMED_PIPE, pipe.getType(), "Type should be TYPE_NAMED_PIPE");
                assertEquals(SmbPipeResource.PIPE_TYPE_RDWR, pipe.getPipeType(), "Pipe type should match constructor");
            }
    
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                    testEncryptionKey, testEncryptionKey); // Use same key for test
    
            byte[] plaintext = "Hello, SMB3 Encryption!".getBytes();
            long sessionId = 0x123456789ABCDEF0L;
    
            // When - Encrypt
            byte[] encrypted = context.encryptMessage(plaintext, sessionId);
    
            // Then - Verify encrypted message structure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacMacTest.java

    import javax.security.auth.kerberos.KerberosPrincipal;
    
    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the PacMac class.
     */
    class PacMacTest {
    
        private static final byte[] TEST_DATA = "test data".getBytes();
        private static final KerberosPrincipal TEST_PRINCIPAL = new KerberosPrincipal("test@REALM");
    
        /**
         * Test method for
         * {@link jcifs.pac.PacMac#calculateMacArcfourHMACMD5(int, java.security.Key, byte[])}.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            // Write initial content
            try (OutputStream out = file.openOutputStream(false)) {
                out.write(initialContent.getBytes("UTF-8"));
            }
    
            // Overwrite with new content
            try (OutputStream out = file.openOutputStream(false)) {
                out.write(newContent.getBytes("UTF-8"));
            }
    
            // Verify new content
            try (InputStream in = file.getInputStream()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

        void testType1MessageCreation() {
            // When
            Type1Message type1 = new Type1Message(mockContext);
    
            // Then
            assertNotNull(type1);
            // Note: getType() method does not exist in Type1Message
            assertTrue(type1.getFlags() != 0); // Should have some flags set
        }
    
        @Test
        @DisplayName("Should create Type 1 message with custom flags")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacSignatureTest.java

            // Create PacSignature
            PacSignature pacSignature = new PacSignature(data);
    
            // Verify
            assertEquals(PacSignature.KERB_CHECKSUM_HMAC_MD5, pacSignature.getType());
            assertArrayEquals(checksum, pacSignature.getChecksum());
        }
    
        /**
         * Test constructor with HMAC_SHA1_96_AES128 type.
         *
         * @throws IOException if an I/O error occurs
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java

                return true;
            }
    
            return Objects.equals(a1.getGroupId(), a2.getGroupId())
                    && Objects.equals(a1.getArtifactId(), a2.getArtifactId())
                    && Objects.equals(a1.getType(), a2.getType())
                    && Objects.equals(a1.getVersion(), a2.getVersion())
                    && Objects.equals(a1.getClassifier(), a2.getClassifier())
                    && Objects.equals(a1.getScope(), a2.getScope())
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/kerberos/KerberosAuthDataTest.java

         */
        @Test
        void testParseAuthDataPacWithInvalidToken() {
            // GIVEN an invalid token for AUTH_DATA_PAC
            byte[] invalidToken = "invalid-pac-token".getBytes();
    
            // WHEN parsing the auth data
            // THEN a PACDecodingException should be thrown
            assertThrows(PACDecodingException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            leaseContext = new LeaseV1CreateContextRequest(testKey, testState);
        }
    
        @Test
        @DisplayName("Should have correct context name")
        void testContextName() {
            assertArrayEquals("RqLs".getBytes(), leaseContext.getName());
            assertEquals("RqLs", LeaseV1CreateContextRequest.CONTEXT_NAME);
        }
    
        @Test
        @DisplayName("Should initialize with default values")
        void testDefaultConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
Back to top