- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 45 for Violation (0.04 sec)
-
android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt
OkHttpClient() assertThat(violations).hasSize(1) assertThat(violations[0].message).isEqualTo("newSSLContext") } @Test fun testNewCall() { Platform.resetForTests() val client = OkHttpClient() applyStrictMode() // Safe on main client.newCall(Request("https://google.com/robots.txt".toHttpUrl())) assertThat(violations).isEmpty() }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Nov 21 12:33:41 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/audit/SecurityAuditLoggerTest.java
logger.logSecurityViolation("Test violation with stack trace", context); logger.setIncludeStackTrace(false); logger.logSecurityViolation("Test violation without stack trace", context); Map<EventType, Long> stats = logger.getStatistics(); assertEquals(Long.valueOf(2), stats.get(EventType.SECURITY_VIOLATION), "Should have 2 security violation events"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.6K bytes - Viewed (0) -
src/main/java/jcifs/audit/SecurityAuditLogger.java
returnContextMap(context); } /** * Log a security violation * * @param violation description of violation * @param context additional context */ public void logSecurityViolation(String violation, Map<String, Object> context) { String message = "Security violation detected: " + violation; logEvent(EventType.SECURITY_VIOLATION, Severity.CRITICAL, message, context);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 26.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbExceptionTest.java
assertTrue(exception.getMessage().toLowerCase().contains("access") && exception.getMessage().toLowerCase().contains("denied")); } @Test @DisplayName("Should format error message for sharing violation") void testSharingViolationError() { // Given int ntStatus = NtStatus.NT_STATUS_SHARING_VIOLATION; // When SmbException exception = new SmbException(ntStatus, false);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtStatus.java
int NT_STATUS_LOGON_FAILURE = 0xC000006d; /** Logon failure: user account restriction */ int NT_STATUS_ACCOUNT_RESTRICTION = 0xC000006e; /** Logon failure: account logon time restriction violation */ int NT_STATUS_INVALID_LOGON_HOURS = 0xC000006f; /** Logon failure: user not allowed to log on to this computer */ int NT_STATUS_INVALID_WORKSTATION = 0xC0000070; /** The user's password has expired */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 14.9K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
), ).assertLogMatch( Regex( """callFailed: \S+(?:SSLProtocolException|SSLHandshakeException|TlsFatalAlert): .*(?:Unexpected handshake message: client_hello|Handshake message sequence violation, 1|Read error|Handshake failed|unexpected_message\(10\)).*""", ),Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtStatus.java
int NT_STATUS_LOGON_FAILURE = 0xC000006d; /** Logon failure: user account restriction */ int NT_STATUS_ACCOUNT_RESTRICTION = 0xC000006e; /** Logon failure: account logon time restriction violation */ int NT_STATUS_INVALID_LOGON_HOURS = 0xC000006f; /** Logon failure: user not allowed to log on to this computer */ int NT_STATUS_INVALID_WORKSTATION = 0xC0000070; /** The user's password has expired */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtStatusTest.java
// Should be an error status (0xC prefix) assertTrue((status & (int) 0xC0000000L) == (int) 0xC0000000L); } @Test @DisplayName("Should handle sharing violation status") void testSharingViolationStatus() { // Given int status = NtStatus.NT_STATUS_SHARING_VIOLATION; // When/Then assertEquals((int) 0xC0000043L, status);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteArrayDataInput.java
* array. If any method encounters the end of the array prematurely, it throws {@link * IllegalStateException} to signify <i>programmer error</i>. This behavior is a technical violation * of the supertype's contract, which specifies a checked exception. * * @author Kevin Bourrillion * @since 1.0 */ @J2ktIncompatible @GwtIncompatible public interface ByteArrayDataInput extends DataInput {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 20:25:25 UTC 2024 - 2.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0)