Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for Vector (0.19 sec)

  1. src/test/java/jcifs/pac/ASN1UtilTest.java

        void testAs_Enumeration_Success() throws PACDecodingException {
            // Test successful casting from enumeration
            Vector<ASN1Integer> vector = new Vector<>();
            ASN1Integer expected = new ASN1Integer(123);
            vector.add(expected);
            ASN1Integer result = ASN1Util.as(ASN1Integer.class, vector.elements());
            assertSame(expected, result);
        }
    
        @Test
        void testAs_Enumeration_Failure() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

        @SuppressWarnings("unused")
        @Test
        public void testIterable() throws Exception {
            final Vector<String> vector = new Vector<String>();
            vector.add("a");
            vector.add("b");
            int count = 0;
            for (final String s : iterable(vector.elements())) {
                ++count;
            }
            assertThat(count, is(2));
        }
    
        /**
         * Test method for
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

         */
        @Test
        void testConstructorUnknownField() throws IOException {
            ASN1EncodableVector vector = new ASN1EncodableVector();
            vector.add(new DERTaggedObject(99, new DERGeneralString("unknown")));
            DERSequence sequence = new DERSequence(vector);
            byte[] encoded = new DERTaggedObject(false, BERTags.APPLICATION, 1, sequence).getEncoded();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         * @param c the collection of elements to be placed in the vector
         * @return a new instance of {@link Vector}
         * @see Vector#Vector(Collection)
         */
        public static <E> Vector<E> newVector(final Collection<? extends E> c) {
            return new Vector<>(c);
        }
    
        /**
         * Creates and returns a new instance of {@link Vector}.
         *
         * @param <E> the element type of {@link Vector}
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/main/java/jcifs/internal/fscc/SmbInfoAllocation.java

    /**
     * Represents the SMB_INFO_ALLOCATION information level used in SMB transaction requests.
     * This structure provides allocation information for a file system including total units,
     * free units, sectors per allocation unit, and bytes per sector.
     */
    public class SmbInfoAllocation implements AllocInfo {
    
        /**
         * Default constructor for SMB allocation information.
         */
        public SmbInfoAllocation() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
Back to top