Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getSigningKey (0.4 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. src/main/java/jcifs/smb/NtlmContext.java

         * @return the server's challenge
         */
        public byte[] getServerChallenge() {
            return this.serverChallenge;
        }
    
        @Override
        public byte[] getSigningKey() {
            return this.masterKey;
        }
    
        @Override
        public String getNetbiosName() {
            return this.netbiosName;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

         *
         * @param challenge the server challenge bytes
         * @return the signing key
         * @throws SmbException if an error occurs generating the signing key
         */
        public byte[] getSigningKey(final byte[] challenge) throws SmbException {
            switch (LM_COMPATIBILITY) {
            case 0:
            case 1:
            case 2:
                final byte[] signingKey = new byte[40];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

         * @param chlng the server challenge
         * @return the signing key
         * @throws SmbException if an SMB error occurs
         * @throws GeneralSecurityException if a security error occurs
         */
        public byte[] getSigningKey(CIFSContext tc, byte[] chlng) throws SmbException, GeneralSecurityException {
            switch (tc.getConfig().getLanManCompatibility()) {
            case 0:
            case 1:
            case 2:
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
Back to top