Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getCiphers (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                assertEquals(6, bytesRead);
                assertNotNull(context.getCiphers());
                assertEquals(2, context.getCiphers().length);
                assertEquals(EncryptionNegotiateContext.CIPHER_AES128_CCM, context.getCiphers()[0]);
                assertEquals(EncryptionNegotiateContext.CIPHER_AES128_GCM, context.getCiphers()[1]);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                assertArrayEquals(ciphers, context.getCiphers());
            }
    
            @Test
            @DisplayName("Should create context with default constructor")
            void testDefaultConstructor() {
                context = new EncryptionNegotiateContext();
    
                assertEquals(EncryptionNegotiateContext.NEGO_CTX_ENC_TYPE, context.getContextType());
                assertNull(context.getCiphers());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                // Assert
                assertEquals(EncryptionNegotiateContext.NEGO_CTX_ENC_TYPE, context.getContextType());
                assertArrayEquals(testCiphers, context.getCiphers());
            }
    
            @Test
            @DisplayName("Should create empty context with default constructor")
            void testDefaultConstructor() {
                // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                return false;
            }
            return true;
        }
    
        private static boolean checkEncryptionContext(final Smb2NegotiateRequest req, final EncryptionNegotiateContext ec) {
            if (ec.getCiphers() == null || ec.getCiphers().length != 1) {
                log.error("Server returned no cipher selection");
                return false;
            }
    
            EncryptionNegotiateContext rec = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java

         */
        public EncryptionNegotiateContext() {
        }
    
        /**
         * Gets the supported encryption ciphers.
         *
         * @return array of encryption cipher IDs
         */
        public int[] getCiphers() {
            return this.ciphers;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.nego.NegotiateContextRequest#getContextType()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 3.8K bytes
    - Viewed (0)
Back to top