Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for setMechanismListMIC (0.17 sec)

  1. src/main/java/jcifs/spnego/NegTokenInit.java

                final byte[] mechanismListMIC) {
            setMechanisms(mechanisms);
            setContextFlags(contextFlags);
            setMechanismToken(mechanismToken);
            setMechanismListMIC(mechanismListMIC);
        }
    
        /**
         * Constructs a NegTokenInit by parsing the provided token bytes
         * @param token the SPNEGO token bytes to parse
         * @throws IOException if parsing fails
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/spnego/SpnegoTokenTest.java

        @Test
        @DisplayName("Setter and getter for mechanismListMIC work")
        void setGetMechanismListMIC() {
            TestSpnegoToken t = new TestSpnegoToken();
            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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/spnego/NegTokenTarg.java

                final byte[] mechanismListMIC) {
            setResult(result);
            setMechanism(mechanism);
            setMechanismToken(mechanismToken);
            setMechanismListMIC(mechanismListMIC);
        }
    
        /**
         * Constructs a NegTokenTarg by parsing the provided token bytes
         * @param token the SPNEGO token bytes to parse
         * @throws IOException if parsing fails
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/spnego/SpnegoToken.java

        }
    
        /**
         * Sets the mechanism list MIC (Message Integrity Code) for integrity protection
         * @param mechanismListMIC the mechanism list MIC bytes
         */
        public void setMechanismListMIC(final byte[] mechanismListMIC) {
            this.mechanismListMIC = mechanismListMIC;
        }
    
        /**
         * Encodes this SPNEGO token to a byte array
         * @return the encoded token 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)
  5. src/test/java/jcifs/spnego/NegTokenTargTest.java

            nt.setResult(NegTokenTarg.REQUEST_MIC);
            nt.setMechanismToken(new byte[0]); // empty but non‑null
            nt.setMechanism(new ASN1ObjectIdentifier("2.16.840.1.101.3.6.1"));
            nt.setMechanismListMIC(null);
            byte[] bytes = nt.toByteArray();
            NegTokenTarg parsed = new NegTokenTarg(bytes);
            assertArrayEquals(new byte[0], parsed.getMechanismToken(), "empty token preserved");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
Back to top