Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Vector (0.68 sec)

  1. src/main/java/jcifs/spnego/NegTokenInit.java

                if (mechs != null) {
                    final ASN1EncodableVector vector = new ASN1EncodableVector();
                    for (final ASN1ObjectIdentifier mech : mechs) {
                        vector.add(mech);
                    }
                    fields.add(new DERTaggedObject(true, 0, new DERSequence(vector)));
                }
                final int ctxFlags = getContextFlags();
                if (ctxFlags != 0) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmUtilTest.java

            }
            return out;
        }
    
        @Test
        @DisplayName("getNTHash: known vector for 'password'")
        void testGetNTHash_knownVector() {
            // Arrange
            String password = "password";
            // Known NT hash for "password" (UTF-16LE MD4)
            // This is a well-known test vector: password -> 8846F7EAEE8FB117AD06BDD830B7586C
            byte[] expected = hex("8846F7EAEE8FB117AD06BDD830B7586C");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (1)
  3. src/main/java/jcifs/smb1/smb1/SmbSession.java

     */
    
    package jcifs.smb1.smb1;
    
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    import java.util.Enumeration;
    import java.util.Vector;
    
    import jcifs.smb1.Config;
    import jcifs.smb1.UniAddress;
    import jcifs.smb1.netbios.NbtAddress;
    import jcifs.smb1.util.LogStream;
    
    /**
     * The SmbSession class represents an SMB session established with a server.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/http/NetworkExplorerTest.java

        @Test
        void testInit_WithJcifsParameters() throws ServletException {
            // Reset mocks for this test
            reset(servletConfig, servletContext);
    
            // Setup init parameters
            Vector<String> paramNames = new Vector<>();
            paramNames.add("jcifs.smb.client.domain");
            paramNames.add("jcifs.http.enableBasic");
            paramNames.add("someOtherParam");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java

            assertFalse(Arrays.equals(signingKey, signingKey311), "Should be different from SMB 3.1.1 key");
        }
    
        @Test
        @DisplayName("Should derive keys with specific test vectors")
        void testDeriveKeys_TestVectors() {
            // Given - Use known test vector (simplified for demonstration)
            byte[] testSessionKey = new byte[16];
            Arrays.fill(testSessionKey, (byte) 0xAA);
            byte[] testPreauth = new byte[64];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

            @DisplayName("Should decode various sector and allocation configurations")
            @CsvSource({ "1000, 500, 1, 512", // Minimal sectors per alloc
                    "1000, 500, 8, 512", // Typical configuration
                    "1000, 500, 64, 512", // Large allocation units
                    "1000, 500, 8, 4096", // 4K sectors
                    "1000, 500, 16, 4096", // Large sectors and allocation
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

            @DisplayName("Should decode various sector and allocation configurations")
            @CsvSource({ "1000, 500, 600, 1, 512", // Minimal sectors per alloc
                    "1000, 500, 600, 8, 512", // Typical configuration
                    "1000, 500, 600, 64, 512", // Large allocation units
                    "1000, 500, 600, 8, 4096", // 4K sectors
                    "1000, 500, 600, 16, 4096", // Large sectors and allocation
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

        @DisplayName("Test decode with large bytes per sector")
        void testDecodeWithLargeBytesPerSector() throws SMBProtocolDecodingException {
            // Prepare test data with large bytesPerSect
            byte[] buffer = new byte[22];
            int idFileSystem = 0x22222222;
            int sectPerAlloc = 8;
            long alloc = 10000L;
            long free = 5000L;
            int bytesPerSect = 32768; // 32KB sectors
    
            // Encode test data
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            SMBUtil.writeInt8(500000, buffer, 28); // Available allocation units
            SMBUtil.writeInt4(512, buffer, 36); // Sectors per unit
            SMBUtil.writeInt4(4096, buffer, 40); // Bytes per sector
    
            int result = response.readBytesWireFormat(buffer, bufferIndex);
    
            assertNotNull(response.getInfo());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

            v.add(new DERTaggedObject(true, 2, new DERBitString(new byte[] { apOptions }))); // first byte read by impl
            return new DERSequence(v);
        }
    
        @Test
        @DisplayName("byte[] ctor: empty token throws PACDecodingException with clear message")
        void byteArrayConstructor_emptyToken_throws() {
            // Arrange
            byte[] empty = new byte[0];
    
            // Act + Assert
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top