Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MIC (0.01 sec)

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

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

        /**
         * Calculates a Message Integrity Code (MIC) for the given data.
         * @param data the data to calculate MIC for
         * @return MIC
         * @throws CIFSException if an error occurs calculating the MIC
         */
        byte[] calculateMIC(byte[] data) throws CIFSException;
    
        /**
         * Verifies a Message Integrity Code (MIC) for the given data.
         * @param data the data to verify
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/spnego/NegTokenTargTest.java

            ASN1ObjectIdentifier mech = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2");
            byte[] tokenArray = new byte[] { 1, 2, 3 };
            byte[] mic = new byte[] { 9, 9, 9 };
            NegTokenTarg original = new NegTokenTarg(NegTokenTarg.ACCEPT_COMPLETED, mech, tokenArray, mic);
    
            // Act – serialise and parse back
            byte[] bytes = original.toByteArray();
            NegTokenTarg roundTrip = new NegTokenTarg(bytes);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/jcifs/spnego/NegTokenTarg.java

         */
        public static final int ACCEPT_INCOMPLETE = 1;
        /**
         * Result code indicating authentication was rejected
         */
        public static final int REJECTED = 2;
        /**
         * Result code indicating MIC token is requested
         */
        public static final int REQUEST_MIC = 3;
    
        private ASN1ObjectIdentifier mechanism;
    
        private int result = UNSPECIFIED_RESULT;
    
        /**
    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