Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for verifyMIC (0.04 sec)

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

            verify(this.mechContext, never()).calculateMIC(any());
        }
    
        @Test
        @DisplayName("verifyMIC throws when context not established")
        void testVerifyMICRequiresEstablished() throws Exception {
            SpnegoContext ctx = newContext();
            CIFSException ex = assertThrows(CIFSException.class, () -> ctx.verifyMIC(new byte[] { 1 }, new byte[] { 2 }));
            assertEquals("Context is not established", ex.getMessage());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SSPContext.java

         * @param data the data to verify
         * @param mic the MIC to verify against
         * @throws CIFSException if the MIC verification fails or an error occurs
         */
        void verifyMIC(byte[] data, byte[] mic) throws CIFSException;
    
        /**
         * Checks whether Message Integrity Code (MIC) is available for use.
         * @return whether MIC can be used
         */
        boolean isMICAvailable();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top