Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 79 for Verification (0.09 seconds)

  1. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

                assertFalse(echoResponse.isVerifyFailed());
                verify(mockDigest).verify(buffer, 0, 100, 0, echoResponse);
            }
    
            @Test
            @DisplayName("Should fail signature verification when digest verification fails")
            void testVerifySignatureFailed() throws Exception {
                byte[] buffer = new byte[1024];
                echoResponse.setDigest(mockDigest);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

                // Use constant-time comparison to prevent timing attacks
                if (!MessageDigest.isEqual(sig, cmp)) {
                    return false; // Signature verification failed
                }
                return true; // Signature verification succeeded
            } finally {
                this.signingLock.unlock();
            }
        }
    
        /**
         * Securely wipe signing key from memory
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                assertTrue(result);
                assertFalse(response.isVerifyFailed());
            }
    
            @Test
            @DisplayName("Should handle signature verification failure")
            void testVerifySignatureFailure() {
                byte[] buffer = new byte[100];
                response.setDigest(mockDigest);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

            assertFalse(
                    wagon.getTransferEventSupport().hasTransferListener(transferListener),
                    "Transfer listener still registered after putArtifact");
        }
    
        /**
         * Checks the verification of checksums.
         */
        @Disabled
        @Test
        void testChecksumVerification() throws Exception {
            ArtifactRepositoryPolicy policy = new ArtifactRepositoryPolicy(
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 12.9K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

         *
         * @param macSigningKey
         *            The MAC signing key used for generating signatures
         * @param bypass
         *            Whether to bypass signature verification
         */
        public SMB1SigningDigest(final byte[] macSigningKey, final boolean bypass) {
            this(macSigningKey, bypass, 0);
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

            @DisplayName("Should correctly verify signatures - regression test for inverted logic bug")
            void testVerifySignatureLogicRegression() throws Exception {
                // This test ensures the signature verification logic is not inverted
                // Previously there was a bug where verify returned true for invalid signatures
    
                // Set signed flag
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 43.7K bytes
    - Click Count (0)
  7. internal/config/notify/help.go

    			Description: "set to 'on' to enable TLS",
    			Optional:    true,
    			Type:        "on|off",
    		},
    		config.HelpKV{
    			Key:         target.KafkaTLSSkipVerify,
    			Description: `trust server TLS without verification, defaults to "on" (verify)`,
    			Optional:    true,
    			Type:        "on|off",
    		},
    		config.HelpKV{
    			Key:         target.KafkaClientTLSCert,
    			Description: "path to client certificate for mTLS auth",
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Sep 06 23:06:30 GMT 2024
    - 19.2K bytes
    - Click Count (0)
  8. internal/hash/reader_test.go

    	}
    }
    
    // Tests hash reader checksum verification.
    func TestHashReaderVerification(t *testing.T) {
    	testCases := []struct {
    		desc              string
    		src               io.Reader
    		size              int64
    		actualSize        int64
    		md5hex, sha256hex string
    		err               error
    	}{
    		0: {
    			desc:       "Success, no checksum verification provided.",
    			src:        bytes.NewReader([]byte("abcd")),
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

        @Test
        @DisplayName("Test decode with signature verification failure")
        void testDecodeWithSignatureVerificationFailure() {
            testBlock = new TestAndXServerMessageBlock(mockConfig, (byte) 0x25) {
                @Override
                public boolean verifySignature(byte[] data, int offset, int length) {
                    return false; // Simulate signature verification failure
                }
    
                @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  10. docs/logging/README.md

    sasl             (on|off)    set to 'on' to enable SASL authentication
    tls              (on|off)    set to 'on' to enable TLS
    tls_skip_verify  (on|off)    trust server TLS without verification, defaults to "on" (verify)
    client_tls_cert  (path)      path to client certificate for mTLS auth
    client_tls_key   (path)      path to client key for mTLS auth
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 10.5K bytes
    - Click Count (0)
Back to Top