Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for supportsIntegrity (0.5 sec)

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

                // Only stub supportsIntegrity - isEstablished won't be called due to short-circuit
                when(mockCtx.supportsIntegrity()).thenReturn(false);
    
                // A small consumer that only uses MIC if advertised as available
                byte[] data = new byte[] { 1, 2 };
                if (mockCtx.supportsIntegrity() && mockCtx.isEstablished()) {
                    mockCtx.calculateMIC(data);
    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/test/java/jcifs/smb/SpnegoContextTest.java

        }
    
        @Test
        @DisplayName("supportsIntegrity delegates to underlying mechanism context")
        void testSupportsIntegrityDelegates() {
            SpnegoContext ctx = newContext();
            when(this.mechContext.supportsIntegrity()).thenReturn(true);
            assertTrue(ctx.supportsIntegrity());
            verify(this.mechContext, times(1)).supportsIntegrity();
        }
    
        @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)
  3. src/main/java/jcifs/smb/SpnegoContext.java

            } catch (final IOException e) {
                throw new SpnegoException("Invalid token");
            }
        }
    
        @Override
        public boolean supportsIntegrity() {
            return this.mechContext.supportsIntegrity();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier)
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SSPContext.java

         */
        ASN1ObjectIdentifier[] getSupportedMechs();
    
        /**
         * Checks whether this mechanism supports message integrity.
         * @return whether this mechanisms supports integrity
         */
        boolean supportsIntegrity();
    
        /**
         * Calculates a Message Integrity Code (MIC) for the given data.
         * @param data the data to calculate MIC for
         * @return MIC
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/Kerb5Context.java

            return this.gssContext != null && this.gssContext.isEstablished();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#supportsIntegrity()
         */
        @Override
        public boolean supportsIntegrity() {
            return true;
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws CIFSException
         *
         * @see jcifs.smb.SSPContext#calculateMIC(byte[])
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  6. src/test/java/jcifs/smb/Kerb5ContextTest.java

            // Put it back for subsequent tests
            setPrivateField(ctx, "gssContext", gssContext);
        }
    
        @Test
        @DisplayName("supportsIntegrity always true")
        void supportsIntegrity_alwaysTrue() {
            assertTrue(ctx.supportsIntegrity());
        }
    
        @Test
        @DisplayName("calculateMIC returns value from GSS and verifies interaction")
        void calculateMIC_success() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NtlmContext.java

            md5.update(masterKey);
            md5.update(cnst.getBytes(StandardCharsets.US_ASCII));
            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
    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