Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for calculateMac (0.05 sec)

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

                byte[] data = new byte[] { 1, 2 };
                if (mockCtx.supportsIntegrity() && mockCtx.isEstablished()) {
                    mockCtx.calculateMIC(data);
                }
    
                // Verify that calculateMIC was never called
                verify(mockCtx, never()).calculateMIC(any());
                // Verify that supportsIntegrity was checked once
                verify(mockCtx, times(1)).supportsIntegrity();
    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/Kerb5ContextTest.java

        }
    
        @Test
        @DisplayName("calculateMIC returns value from GSS and verifies interaction")
        void calculateMIC_success() throws Exception {
            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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SpnegoContext.java

            return this.mechContext.isPreferredMech(mech);
        }
    
        @Override
        public byte[] calculateMIC(final byte[] data) throws CIFSException {
            if (!this.completed) {
                throw new CIFSException("Context is not established");
            }
            return this.mechContext.calculateMIC(data);
        }
    
        /**
         * {@inheritDoc}
         *
    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/Kerb5Context.java

            return true;
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws CIFSException
         *
         * @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) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  5. src/main/java/jcifs/smb/NtlmContext.java

        }
    
        @Override
        public boolean isMICAvailable() {
            return !this.auth.isGuest() && this.signKey != null && this.verifyKey != null;
        }
    
        @Override
        public byte[] calculateMIC(final byte[] data) throws CIFSException {
            final byte[] sk = this.signKey;
            if (sk == null) {
                throw new CIFSException("Signing is not initialized");
            }
    
    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