- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for mich (0.09 sec)
-
src/main/java/jcifs/smb/SpnegoContext.java
final byte[] mechanismListMIC = this.mechContext.calculateMIC(ml); if (log.isDebugEnabled()) { log.debug("Out Mech list " + Arrays.toString(lm)); log.debug("Out Mech list encoded " + Hexdump.toHexString(ml)); log.debug("Out Mech list MIC " + Hexdump.toHexString(mechanismListMIC)); } return mechanismListMIC; }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
byte[] data = new byte[] { 1, 2 }; byte[] mic = new byte[] { 3 }; // No exception means success doNothing().when(gssContext).verifyMIC(eq(mic), eq(0), eq(1), eq(data), eq(0), eq(2), any()); assertDoesNotThrow(() -> ctx.verifyMIC(data, mic)); verify(gssContext, times(1)).verifyMIC(eq(mic), eq(0), eq(1), eq(data), eq(0), eq(2), any()); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Context.java
throw new CIFSException("Failed to calculate MIC", e); } } /** * {@inheritDoc} * * @see jcifs.smb.SSPContext#verifyMIC(byte[], byte[]) */ @Override public void verifyMIC(byte[] data, byte[] mic) throws CIFSException { try { this.gssContext.verifyMIC(mic, 0, mic.length, data, 0, data.length, new MessageProp(false));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13.5K bytes - Viewed (1) -
src/main/java/jcifs/spnego/NegTokenInit.java
*/ @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); } @Override public byte[] toByteArray() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/jcifs/spnego/NegTokenTarg.java
fields.add(new DERTaggedObject(true, 0, new ASN1Enumerated(res))); } final ASN1ObjectIdentifier mech = getMechanism(); if (mech != null) { fields.add(new DERTaggedObject(true, 1, mech)); } final byte[] mechanismToken = getMechanismToken(); if (mechanismToken != null) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SSPContextTest.java
} byte[] expected = calculateMIC(data); if (mic.length != expected.length || mic[0] != expected[0]) { throw new CIFSException("MIC mismatch"); } } @Override public boolean isMICAvailable() { // Available if context is established and integrity is supported return this.established && this.integrity;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
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 verifyRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.9K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (2) -
src/test/java/jcifs/smb/SpnegoContextTest.java
void testIsPreferredMechDelegates() { SpnegoContext ctx = newContext(); ASN1ObjectIdentifier mech = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2"); when(this.mechContext.isPreferredMech(mech)).thenReturn(true); assertTrue(ctx.isPreferredMech(mech)); verify(this.mechContext, times(1)).isPreferredMech(mech); } @Test @DisplayName("getFlags delegates to underlying mechanism context")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmContext.java
throw new CIFSException("Failed to decrypt MIC", e); } } final int expectSeq = this.verifySequence.getAndIncrement(); if (expectSeq != seq) { throw new CIFSException(String.format("Invalid MIC sequence, expect %d have %d", expectSeq, seq)); } final byte[] verify = new byte[8]; System.arraycopy(mic, 4, verify, 0, 8);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 17.3K bytes - Viewed (0)