Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getMIC (0.13 sec)

  1. src/test/java/jcifs/smb/Kerb5ContextTest.java

            byte[] data = new byte[] { 1, 2, 3 };
            byte[] mic = new byte[] { 9, 8 };
            when(gssContext.getMIC(eq(data), eq(0), eq(3), any())).thenReturn(mic);
    
            byte[] res = ctx.calculateMIC(data);
            assertArrayEquals(mic, res);
            verify(gssContext, times(1)).getMIC(eq(data), eq(0), eq(3), any());
        }
    
        @Test
        @DisplayName("calculateMIC wraps GSSException into CIFSException")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            // Then
            // MIC (Message Integrity Check) should be included for newer versions
            if (type3.isMICRequired()) {
                assertNotNull(type3.getMic());
                assertEquals(16, type3.getMic().length); // MIC is 16 bytes
            }
        }
    
        @Test
        @DisplayName("Should handle case sensitivity correctly")
        void testCaseSensitivity() throws Exception {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/Kerb5Context.java

         *
         * @see jcifs.smb.SSPContext#calculateMIC(byte[])
         */
        @Override
        public byte[] calculateMIC(byte[] data) throws CIFSException {
            try {
                return this.gssContext.getMIC(data, 0, data.length, new MessageProp(false));
            } catch (GSSException e) {
                throw new CIFSException("Failed to calculate MIC", e);
            }
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  4. src/main/java/jcifs/ntlmssp/Type3Message.java

        }
    
        /**
         * Returns the message integrity code (MIC) for this Type-3 message.
         *
         * @return A <code>byte[]</code> containing the message integrity code.
         */
        public byte[] getMic() {
            return this.mic;
        }
    
        /**
         * Sets the message integrity code (MIC) for this Type-3 message.
         *
         * @param mic
         *            NTLM mic to set (16 bytes)
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
Back to top