- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for isMICAvailable (0.1 seconds)
-
src/test/java/jcifs/smb/SSPContextTest.java
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; } } @Nested @DisplayName("Happy path behavior")
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
} @Test @DisplayName("isMICAvailable returns false before establishment and does not call delegate") void testIsMICAvailableBeforeEstablished() { SpnegoContext ctx = newContext(); // The mock setup is unnecessary since we never call it assertFalse(ctx.isMICAvailable()); verify(this.mechContext, never()).isMICAvailable(); } @TestCreated: 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/SpnegoContext.java
} /** * {@inheritDoc} * * @see jcifs.smb.SSPContext#isMICAvailable() */ @Override public boolean isMICAvailable() { if (!this.completed) { return false; } return this.mechContext.isMICAvailable(); } /** * {@inheritDoc} * * @see java.lang.Object#toString() */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/SSPContext.java
Created: 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/Kerb5Context.java
throw new CIFSException("Failed to verify MIC", e); } } /** * {@inheritDoc} * * @see jcifs.smb.SSPContext#isMICAvailable() */ @Override public boolean isMICAvailable() { return this.gssContext.getIntegState(); } /** * {@inheritDoc} * * @see jcifs.smb.SSPContext#getNetbiosName() */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13.5K bytes - Click Count (1) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
} @Test @DisplayName("isMICAvailable reflects GSS integ state") void isMICAvailable_behavior() { when(gssContext.getIntegState()).thenReturn(false).thenReturn(true); assertFalse(ctx.isMICAvailable()); assertTrue(ctx.isMICAvailable()); } @Test @DisplayName("getNetbiosName returns null")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmContext.java
md5.update((byte) 0); return md5.digest(); } @Override public boolean supportsIntegrity() { return true; } @Override public boolean isMICAvailable() { return !this.auth.isGuest() && this.signKey != null && this.verifyKey != null; } @Override public byte[] calculateMIC(final byte[] data) throws CIFSException {
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)