Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for getSigningKey (0.31 sec)

  1. src/test/java/jcifs/smb/SSPContextTest.java

        class InvalidInputs {
            @Test
            @DisplayName("getSigningKey throws when unavailable")
            void testGetSigningKeyThrows() {
                DummySSPContext ctx = new DummySSPContext(null, false, null, null, 0, false);
                CIFSException ex = assertThrows(CIFSException.class, ctx::getSigningKey);
                assertTrue(ex.getMessage().contains("signing key"));
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SpnegoContextTest.java

        }
    
        @Test
        @DisplayName("getSigningKey delegates to underlying mechanism context")
        void testGetSigningKeyDelegates() throws Exception {
            SpnegoContext ctx = newContext();
            byte[] key = new byte[] { 1, 2, 3 };
            when(this.mechContext.getSigningKey()).thenReturn(key);
            assertSame(key, ctx.getSigningKey());
            verify(this.mechContext, times(1)).getSigningKey();
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

            NtlmContext context = new NtlmContext(mockAuth, true);
            assertNotNull(context);
            assertFalse(context.isEstablished());
            assertNull(context.getServerChallenge());
            assertNull(context.getSigningKey());
            assertNull(context.getNetbiosName());
    
            int expectedFlags = NtlmFlags.NTLMSSP_REQUEST_TARGET | NtlmFlags.NTLMSSP_NEGOTIATE_NTLM2 | NtlmFlags.NTLMSSP_NEGOTIATE_128
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/AuthenticationProvider.java

         */
        byte[] getSessionKey();
    
        /**
         * Gets the signing key for SMB2/3
         *
         * @return the signing key or null if not available
         */
        byte[] getSigningKey();
    
        /**
         * Validates authentication credentials
         *
         * @return true if credentials are valid
         */
        boolean validateCredentials();
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 3.9K bytes
    - Viewed (1)
  5. src/main/java/jcifs/smb/SpnegoContext.java

        public String getNetbiosName() {
            return null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#getSigningKey()
         */
        @Override
        public byte[] getSigningKey() throws CIFSException {
            return this.mechContext.getSigningKey();
        }
    
        /**
         * Initialize the GSSContext to provide SPNEGO feature.
         *
         * @param inputBuf
         * @param offset
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/Kerb5Context.java

         */
        @Override
        public String getNetbiosName() {
            return null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#getSigningKey()
         */
        @Override
        public byte[] getSigningKey() throws SmbException {
            /*
             * The kerberos session key is not accessible via the JGSS API. IBM and
             * Oracle both implement a similar API to make an ExtendedGSSContext
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  7. src/test/java/jcifs/smb/Kerb5ContextTest.java

        void getNetbiosName_null() {
            assertNull(ctx.getNetbiosName());
        }
    
        @Test
        @DisplayName("getSigningKey throws when ExtendedGSSContext not implemented")
        void getSigningKey_notImplementedByGSSContext() {
            SmbException ex = assertThrows(SmbException.class, () -> ctx.getSigningKey());
            assertTrue(ex.getMessage().contains("ExtendedGSSContext is not implemented"));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/NtlmContext.java

            return serverChallenge;
        }
    
        /**
         * Gets the signing key for message authentication.
         * @return the signing key bytes
         */
        public byte[] getSigningKey() {
            return signingKey;
        }
    
        /**
         * Gets the NetBIOS name of the remote server.
         * @return the NetBIOS name
         */
        public String getNetbiosName() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SSPContext.java

        /**
         * Gets the signing key for the session.
         * @return the signing key for the session
         * @throws CIFSException if an error occurs retrieving the signing key
         */
        byte[] getSigningKey() throws CIFSException;
    
        /**
         * Checks whether the security context is established.
         * @return whether the context is established
         */
        boolean isEstablished();
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbSession.java

                                            .treeConnect(null, null);
                                } else {
                                    final byte[] signingKey = auth.getSigningKey(transport.server.encryptionKey);
                                    request.digest = new SigningDigest(signingKey, false);
                                }
                            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 20.7K bytes
    - Viewed (0)
Back to top