- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 127 for getMic (0.79 sec)
-
src/test/java/jcifs/smb/Kerb5ContextTest.java
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); verify(gssContext, times(1)).getMIC(eq(data), eq(0), eq(3), any()); } @Test @DisplayName("calculateMIC wraps GSSException into CIFSException")
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/test/java/jcifs/ntlmssp/Type3MessageTest.java
// Then // MIC (Message Integrity Check) should be included for newer versions if (type3.isMICRequired()) { assertNotNull(type3.getMic()); assertEquals(16, type3.getMic().length); // MIC is 16 bytes } } @Test @DisplayName("Should handle case sensitivity correctly") void testCaseSensitivity() throws Exception { // GivenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.3K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 32.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Context.java
* * @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) { throw new CIFSException("Failed to calculate MIC", e); } } /** * {@inheritDoc} *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/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
assertEquals(0x3456, testBlock.getFlags2()); assertEquals(0x1234, testBlock.getTid()); assertEquals(0x5678, testBlock.getPid()); assertEquals(0x9ABC, testBlock.getUid()); assertEquals(0xDEF0, testBlock.getMid()); } @Test @DisplayName("Test decode with signature verification failure")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
class ConstructorTests { private Configuration mockConfig; @BeforeEach void setUp() { mockConfig = mock(Configuration.class); when(mockConfig.getPid()).thenReturn(12345); } @Test @DisplayName("Should initialize with correct command and MID") void testConstructorInitialization() throws Exception { // GivenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java
this.andx.setFlags(getFlags()); this.andx.setFlags2(getFlags2()); this.andx.setTid(getTid()); this.andx.setPid(getPid()); this.andx.setUid(getUid()); this.andx.setMid(getMid()); this.andx.setUseUnicode(this.isUseUnicode()); if (this.andx instanceof AndXServerMessageBlock) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
// Mock config methods needed for SMB1 when(config.getPid()).thenReturn(1234); SmbComTreeConnectAndXResponse response = mock(SmbComTreeConnectAndXResponse.class); when(response.getService()).thenReturn("A:"); when(response.isValidTid()).thenReturn(true); when(response.getTid()).thenReturn(1); when(session.send(any(), any())).thenReturn(response);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
*/ public final int getTid() { return this.tid; } /** * @param tid * the tid to set */ @Override public final void setTid(final int tid) { this.tid = tid; } /** * Gets the process identifier * @return the pid */ public final int getPid() { return this.pid; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 38.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java
KerberosPacAuthData authData = new KerberosPacAuthData(pacData, keys); assertNotNull(authData.getPac()); assertNotNull(authData.getPac().getLogonInfo()); assertNotNull(authData.getPac().getServerSignature()); assertNotNull(authData.getPac().getKdcSignature()); } } // Test exception for empty PAC @Test void testConstructorEmptyPac() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 6.3K bytes - Viewed (0)