- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for calculateMIC (0.59 sec)
-
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();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
} @Test @DisplayName("calculateMIC returns value from GSS and verifies interaction") void calculateMIC_success() throws Exception { byte[] data = new byte[] { 1, 2, 3 }; byte[] mic = new byte[] { 9, 8 }; when(gssContext.getMIC(eq(data), eq(0), eq(3), any())).thenReturn(mic); byte[] res = ctx.calculateMIC(data); assertArrayEquals(mic, res);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (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());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (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} *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.5K bytes - Viewed (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 against
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Context.java
return true; } /** * {@inheritDoc} * * @throws CIFSException * * @see jcifs.smb.SSPContext#calculateMIC(byte[]) */ @Override public byte[] calculateMIC(byte[] data) throws CIFSException { try { return this.gssContext.getMIC(data, 0, data.length, new MessageProp(false)); } catch (GSSException e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13.5K bytes - Viewed (1) -
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"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 17.3K bytes - Viewed (0)