- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for calculateMIC (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SpnegoContextTest.java
verify(this.mechContext, times(1)).dispose(); } @Test @DisplayName("calculateMIC throws when context not established") void testCalculateMICRequiresEstablished() throws Exception { SpnegoContext ctx = newContext(); CIFSException ex = assertThrows(CIFSException.class, () -> ctx.calculateMIC(new byte[] { 1 })); assertEquals("Context is not established", ex.getMessage());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/SSPContext.java
* @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 * @param mic the MIC to verify againstCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.9K bytes - Click Count (0) -
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} *
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.5K bytes - Click Count (0) -
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"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 17.3K bytes - Click Count (1)