Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 28 for isSigningEnforced (0.09 seconds)

  1. src/test/java/jcifs/internal/SmbNegotiationRequestTest.java

        }
    
        @Test
        @DisplayName("Test isSigningEnforced returns false when signing is not enforced")
        void testIsSigningEnforcedReturnsFalse() {
            // Given
            when(negotiationRequest.isSigningEnforced()).thenReturn(false);
    
            // When
            boolean result = negotiationRequest.isSigningEnforced();
    
            // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java

                this.dialects = new String[] { "NT LM 0.12" };
            }
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbNegotiationRequest#isSigningEnforced()
         */
        @Override
        public boolean isSigningEnforced() {
            return this.signingEnforced;
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.5K bytes
    - Click Count (3)
  3. src/test/java/jcifs/smb/SmbTransportInternalTest.java

        @Test
        @DisplayName("isSigningOptional and isSigningEnforced reflect configuration")
        void signingModes() throws Exception {
            when(transport.isSigningOptional()).thenReturn(true);
            when(transport.isSigningEnforced()).thenReturn(false);
    
            assertTrue(transport.isSigningOptional());
            assertFalse(transport.isSigningEnforced());
            verify(transport).isSigningOptional();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/SmbNegotiationRequest.java

     */
    public interface SmbNegotiationRequest {
    
        /**
         * Checks whether SMB message signing is enforced by the client.
         *
         * @return whether SMB signing is enforced
         */
        boolean isSigningEnforced();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbTransportInternal.java

         *
         * @return whether signatures are enforced from either side
         * @throws SmbException if an error occurs checking signing status
         */
        boolean isSigningEnforced() throws SmbException;
    
        /**
         * Gets the server's encryption key for authentication.
         *
         * @return the encryption key used by the server
         */
        byte[] getServerEncryptionKey();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  6. src/main/java/jcifs/config/DelegatingConfiguration.java

            return this.delegate.isSigningEnabled();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#isSigningEnforced()
         */
        @Override
        public boolean isSigningEnforced() {
            return this.delegate.isSigningEnforced();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#isIpcSigningEnforced()
         */
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java

        @Override
        public boolean isSigningOptional() throws SmbException {
            return delegate.isSigningOptional();
        }
    
        @Override
        public boolean isSigningEnforced() throws SmbException {
            return delegate.isSigningEnforced();
        }
    
        @Override
        public byte[] getServerEncryptionKey() {
            return delegate.getServerEncryptionKey();
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

         *
         * @return the securityMode
         */
        public int getSecurityMode() {
            return this.securityMode;
        }
    
        @Override
        public boolean isSigningEnforced() {
            return (getSecurityMode() & Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED) != 0;
        }
    
        /**
         * Gets the client capabilities flags.
         *
         * @return the capabilities
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/config/DelegatingConfigurationTest.java

        void testEncryptionSecurityDelegation() {
            // Given
            when(mockDelegate.isEncryptionEnabled()).thenReturn(true);
            when(mockDelegate.isSigningEnabled()).thenReturn(false);
            when(mockDelegate.isSigningEnforced()).thenReturn(true);
            when(mockDelegate.isIpcSigningEnforced()).thenReturn(true);
            when(mockDelegate.isForceExtendedSecurity()).thenReturn(true).thenReturn(false);
    
            // When
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.7K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                            }
                            continue;
                        }
    
                        if (!forceSigning && !tc.getConfig().isSigningEnforced() && conn.isSigningEnforced()
                                && !conn.getNegotiateResponse().isSigningRequired()) {
                            // if signing is not enforced, dont use connections that have signing enforced
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 33.4K bytes
    - Click Count (0)
Back to Top