Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for getChallenge (0.16 sec)

  1. src/test/java/jcifs/tests/NtlmTest.java

            };
    
            Type2Message t2 = new Type2Message(this.context, flags, challenge, target);
            Type2Message parsed = new Type2Message(t2.toByteArray());
            assertArrayEquals(challenge, parsed.getChallenge());
            assertEquals(target, parsed.getTarget());
        }
    
    
        @Test
        public void testParsingType2NoTarget () throws IOException {
            int flags = 0;
            byte[] challenge = new byte[] {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 16 10:38:43 UTC 2018
    - 4.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/ntlmssp/Type2Message.java

         * @return A <code>byte[]</code> containing the challenge.
         */
        public byte[] getChallenge () {
            return this.challenge;
        }
    
    
        /**
         * Sets the challenge for this message.
         *
         * @param challenge
         *            The challenge from the domain controller/server.
         */
        public void setChallenge ( byte[] challenge ) {
            this.challenge = challenge;
        }
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

         *
         * @return A <code>byte[]</code> containing the challenge.
         */
        public byte[] getChallenge() {
            return challenge;
        }
    
        /**
         * Sets the challenge for this message.
         *
         * @param challenge The challenge from the domain controller/server.
         */
        public void setChallenge(byte[] challenge) {
            this.challenge = challenge;
        }
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 12.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                cleanup();
            }
            return inUse;
        }
    
    
        @Override
        public byte[] getChallenge ( CIFSContext tf, Address dc ) throws SmbException {
            return getChallenge(tf, dc, 0);
        }
    
    
        @Override
        public byte[] getChallenge ( CIFSContext tf, Address dc, int port ) throws SmbException {
            try ( SmbTransportInternal trans = tf.getTransportPool()
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 12.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbTransportPool.java

         * @throws CIFSException
         * @deprecated functionality is broken and will be removed at some point,
         *             use actual Active Directory authentication instead
         */
        @Deprecated
        byte[] getChallenge ( CIFSContext tc, Address dc ) throws CIFSException;
    
    
        /**
         * Get NTLM challenge from a server
         * 
         * @param dc
         * @param port
         * @param tc
         * @return NTLM challenge
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 09:02:44 UTC 2020
    - 6.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                                type2.getChallenge(),
                                clientChallenge);
    
                    setLMResponse(clientChallenge);
                    setNTResponse(ntlm2Response);
    
                    if ((getFlags() & NTLMSSP_NEGOTIATE_SIGN) == NTLMSSP_NEGOTIATE_SIGN) {
                        byte[] sessionNonce = new byte[16];
                        System.arraycopy(type2.getChallenge(), 0, sessionNonce, 0, 8);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbSession.java

                    "Failed to negotiate with a suitable domain controller for " + DOMAIN );
        }
    
        public static byte[] getChallenge( UniAddress dc )
                    throws SmbException, UnknownHostException {
            return getChallenge(dc, 0);
        }
    
        public static byte[] getChallenge( UniAddress dc, int port )
                    throws SmbException, UnknownHostException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 18.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/Type3Message.java

                    byte[] ntlm2Response = NtlmUtil.getNTLM2Response(passwordHash, type2.getChallenge(), clientChallenge);
    
                    setLMResponse(clientChallenge);
                    setNTResponse(ntlm2Response);
    
                    byte[] sessionNonce = new byte[16];
                    System.arraycopy(type2.getChallenge(), 0, sessionNonce, 0, 8);
                    System.arraycopy(clientChallenge, 0, sessionNonce, 8, 8);
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 30.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/http/NtlmServlet.java

                    dc = UniAddress.getByName( domainController, true );
                }
                NtlmPasswordAuthentication ntlm;
                if (msg.startsWith("NTLM ")) {
                    byte[] challenge = SmbSession.getChallenge(dc);
                    ntlm = NtlmSsp.authenticate(request, response, challenge);
                    if (ntlm == null) return;
                } else {
                    String auth = new String(Base64.decode(msg.substring(6)),
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 6.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/NtlmContext.java

                            if (log.level >= 6)
                                Hexdump.hexdump(log, token, 0, token.length);
                        }
    
                        serverChallenge = msg2.getChallenge();
                        ntlmsspFlags &= msg2.getFlags();
    
    //                  netbiosName = getNtlmsspListItem(token, 0x0001);
    
                        Type3Message msg3 = new Type3Message(msg2,
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.9K bytes
    - Viewed (0)
Back to top