Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for isMICAvailable (0.08 sec)

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

                if (mic.length != expected.length || mic[0] != expected[0]) {
                    throw new CIFSException("MIC mismatch");
                }
            }
    
            @Override
            public boolean isMICAvailable() {
                // Available if context is established and integrity is supported
                return this.established && this.integrity;
            }
        }
    
        @Nested
        @DisplayName("Happy path behavior")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SpnegoContext.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#isMICAvailable()
         */
        @Override
        public boolean isMICAvailable() {
            if (!this.completed) {
                return false;
            }
            return this.mechContext.isMICAvailable();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#toString()
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SpnegoContextTest.java

        }
    
        @Test
        @DisplayName("isMICAvailable returns false before establishment and does not call delegate")
        void testIsMICAvailableBeforeEstablished() {
            SpnegoContext ctx = newContext();
            // The mock setup is unnecessary since we never call it
            assertFalse(ctx.isMICAvailable());
            verify(this.mechContext, never()).isMICAvailable();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/Kerb5ContextTest.java

        }
    
        @Test
        @DisplayName("isMICAvailable reflects GSS integ state")
        void isMICAvailable_behavior() {
            when(gssContext.getIntegState()).thenReturn(false).thenReturn(true);
            assertFalse(ctx.isMICAvailable());
            assertTrue(ctx.isMICAvailable());
        }
    
        @Test
        @DisplayName("getNetbiosName returns null")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SSPContext.java

        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)
  6. src/main/java/jcifs/smb/Kerb5Context.java

                throw new CIFSException("Failed to verify MIC", e);
            }
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#isMICAvailable()
         */
        @Override
        public boolean isMICAvailable() {
            return this.gssContext.getIntegState();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#getNetbiosName()
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  7. src/main/java/jcifs/smb/NtlmContext.java

            md5.update((byte) 0);
            return md5.digest();
        }
    
        @Override
        public boolean supportsIntegrity() {
            return true;
        }
    
        @Override
        public boolean isMICAvailable() {
            return !this.auth.isGuest() && this.signKey != null && this.verifyKey != null;
        }
    
        @Override
        public byte[] calculateMIC(final byte[] data) throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
Back to top