Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/test/java/jcifs/spnego/SpnegoTokenTest.java

            byte[] mic = new byte[] { 7, 8, 9, 10 };
            t.setMechanismListMIC(mic);
            assertArrayEquals(mic, t.getMechanismListMIC(), "mechanismListMIC should round-trip");
    
            // Document current behavior: no defensive copy (reference exposed)
            mic[1] = 42;
            assertEquals(42, t.getMechanismListMIC()[1], "no defensive copy; reflects external mutation");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/spnego/NegTokenInitTest.java

            assertArrayEquals(mic, p4.getMechanismListMIC(), "MIC should be parsed from tag [4]");
    
            // Tag [3]
            byte[] tokenTag3 = buildInitToken(new ASN1ObjectIdentifier[] { OID_KRB }, null, null, mic, false, null, null, null);
            NegTokenInit p3 = new NegTokenInit(tokenTag3);
            assertArrayEquals(mic, p3.getMechanismListMIC(), "MIC should be parsed from tag [3]");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  3. src/main/java/jcifs/spnego/NegTokenInit.java

         *
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString() {
            String mic = null;
            if (this.getMechanismListMIC() != null) {
                mic = Hexdump.toHexString(this.getMechanismListMIC(), 0, this.getMechanismListMIC().length);
            }
            return String.format("NegTokenInit[flags=%d,mechs=%s,mic=%s]", this.getContextFlags(), Arrays.toString(this.getMechanisms()), mic);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/spnego/NegTokenTargTest.java

            assertEquals(mech, roundTrip.getMechanism(), "mechanism should roundtrip");
            assertArrayEquals(tokenArray, roundTrip.getMechanismToken(), "mechanism token should roundtrip");
            assertArrayEquals(mic, roundTrip.getMechanismListMIC(), "mic should roundtrip");
        }
    
        @Test
        @DisplayName("default constructor – unspecified result")
        void testDefaultResult() {
            NegTokenTarg nt = new NegTokenTarg();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SpnegoContext.java

                if (targ.getResult() == NegTokenTarg.ACCEPT_INCOMPLETE && targ.getMechanismToken() == null
                        && targ.getMechanismListMIC() != null) {
                    // this indicates that mechlistMIC is required by the server
                    verifyMechListMIC(targ.getMechanismListMIC());
                    return new NegTokenTarg(NegTokenTarg.UNSPECIFIED_RESULT, null, null, calculateMechListMIC());
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/spnego/SpnegoToken.java

        }
    
        /**
         * Gets the mechanism list MIC (Message Integrity Code) for integrity protection
         * @return the mechanism list MIC bytes
         */
        public byte[] getMechanismListMIC() {
            return this.mechanismListMIC;
        }
    
        /**
         * Sets the mechanism list MIC (Message Integrity Code) for integrity protection
         * @param mechanismListMIC the mechanism list MIC bytes
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/spnego/NegTokenTarg.java

                if (mechanismToken != null) {
                    fields.add(new DERTaggedObject(true, 2, new DEROctetString(mechanismToken)));
                }
                final byte[] mechanismListMIC = getMechanismListMIC();
                if (mechanismListMIC != null) {
                    fields.add(new DERTaggedObject(true, 3, new DEROctetString(mechanismListMIC)));
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
Back to top