Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for getContextType (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

         */
        public int[] getHashAlgos() {
            return this.hashAlgos;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.nego.NegotiateContextRequest#getContextType()
         */
        @Override
        public int getContextType() {
            return NEGO_CTX_PREAUTH_TYPE;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                EncryptionNegotiateContext encryption = new EncryptionNegotiateContext();
    
                assertNotEquals(preauth.getContextType(), encryption.getContextType());
                assertEquals(0x1, preauth.getContextType());
                assertEquals(0x2, encryption.getContextType());
            }
    
            @Test
            @DisplayName("Should verify all implementations are NegotiateContextRequest")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/nego/NegotiateContextRequest.java

     * @author mbechler
     */
    public interface NegotiateContextRequest extends Encodable {
    
        /**
         * Gets the negotiate context type.
         *
         * @return the SMB2 negotiate context type
         */
        int getContextType();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/nego/NegotiateContextResponse.java

     * @author mbechler
     */
    public interface NegotiateContextResponse extends Decodable {
    
        /**
         * Gets the negotiate context type.
         *
         * @return the SMB2 negotiate context type
         */
        int getContextType();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java

         * Default constructor for response parsing.
         */
        public CompressionNegotiateContext() {
            this.compressionAlgorithms = new int[0];
            this.flags = 0;
        }
    
        @Override
        public int getContextType() {
            return NEGO_CTX_COMPRESSION_TYPE;
        }
    
        /**
         * Gets the supported compression algorithms.
         *
         * @return the supported compression algorithms
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                assertTrue(encContext instanceof NegotiateContextResponse);
                assertEquals(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE, preauthContext.getContextType());
                assertEquals(EncryptionNegotiateContext.NEGO_CTX_ENC_TYPE, encContext.getContextType());
            }
    
            @Test
            @DisplayName("Should be able to use polymorphically")
            void testPolymorphicUsage() {
                // Arrange
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                    this.supportsEncryption = true;
                } else if (ncr.getContextType() == EncryptionNegotiateContext.NEGO_CTX_ENC_TYPE) {
                    log.debug("Multiple encryption negotiate contexts");
                    return false;
                } else if (!foundPreauth && ncr.getContextType() == PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE) {
                    foundPreauth = true;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

        }
    
        @Test
        @DisplayName("Test compression context type")
        public void testContextType() {
            assertEquals(CompressionNegotiateContext.NEGO_CTX_COMPRESSION_TYPE, context.getContextType());
        }
    
        @Test
        @DisplayName("Test supported algorithms")
        public void testSupportedAlgorithms() {
            int[] algorithms = context.getCompressionAlgorithms();
            assertNotNull(algorithms);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext();
    
                assertEquals(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE, context.getContextType());
                assertEquals(0x1, context.getContextType());
            }
        }
    
        @Nested
        @DisplayName("Encoding Tests")
        class EncodingTests {
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 34K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

                SMBUtil.writeInt4(dstIndex - getHeaderStart(), dst, negotitateContextOffsetOffset);
                for (final NegotiateContextRequest nc : this.negotiateContexts) {
                    SMBUtil.writeInt2(nc.getContextType(), dst, dstIndex);
                    final int lenOffset = dstIndex + 2;
                    dstIndex += 4;
                    SMBUtil.writeInt4(0, dst, dstIndex);
                    dstIndex += 4; // Reserved
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.3K bytes
    - Click Count (0)
Back to Top