Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Type1Message (0.1 sec)

  1. src/main/java/jcifs/smb1/ntlmssp/Type1Message.java

    import java.io.IOException;
    
    import java.net.UnknownHostException;
    
    import jcifs.smb1.Config;
    import jcifs.smb1.netbios.NbtAddress;
    
    /**
     * Represents an NTLMSSP Type-1 message.
     */
    public class Type1Message extends NtlmMessage {
    
        private static final int DEFAULT_FLAGS;
    
        private static final String DEFAULT_DOMAIN;
    
        private static final String DEFAULT_WORKSTATION;
    
        private String suppliedDomain;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/ntlmssp/Type1Message.java

    /**
     * Represents an NTLMSSP Type-1 message.
     */
    public class Type1Message extends NtlmMessage {
    
        private String suppliedDomain;
        private String suppliedWorkstation;
    
    
        /**
         * Creates a Type-1 message using default values from the current
         * environment.
         * 
         * @param tc
         *            context to use
         */
        public Type1Message ( CIFSContext tc ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Sep 02 12:55:08 UTC 2018
    - 7.8K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/ntlm/JcifsEngine.java

        }
    
        @Override
        public String generateType1Msg(final String domain, final String workstation) throws NTLMEngineException {
            final Type1Message type1Message = new Type1Message(cifsContext, TYPE_1_FLAGS, domain, workstation);
            return Base64.getEncoder().encodeToString(type1Message.toByteArray());
        }
    
        @Override
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/NtlmTest.java

            int flags = 0x80000000;
            String suppliedDomain = "TESTDOM";
            String suppliedWorkstation = "TESTWS";
            Type1Message t1 = new Type1Message(this.context, flags, suppliedDomain, suppliedWorkstation);
    
            int origFlags = t1.getFlags();
    
            Type1Message parsed = new Type1Message(t1.toByteArray());
    
            assertEquals(origFlags, parsed.getFlags());
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 16 10:38:43 UTC 2018
    - 4.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/http/NtlmSsp.java

            String msg = req.getHeader("Authorization");
            if (msg != null && msg.startsWith("NTLM ")) {
                byte[] src = Base64.decode(msg.substring(5));
                if (src[8] == 1) {
                    Type1Message type1 = new Type1Message(src);
                    Type2Message type2 = new Type2Message(type1, challenge, null);
                    msg = Base64.encode(type2.toByteArray());
                    resp.setHeader( "WWW-Authenticate", "NTLM " + msg );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/NtlmContext.java

            }
    
            return null;
        }
        public byte[] initSecContext(byte[] token, int offset, int len) throws SmbException {
            switch (state) {
                case 1:
                    Type1Message msg1 = new Type1Message(ntlmsspFlags, auth.getDomain(), workstation);
                    token = msg1.toByteArray();
    
                    if (log.level >= 4) {
                        log.println(msg1);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmSsp.java

            if ( msg != null && msg.startsWith("NTLM ") ) {
                byte[] src = Base64.decode(msg.substring(5));
                if ( src[ 8 ] == 1 ) {
                    Type1Message type1 = new Type1Message(src);
                    Type2Message type2 = new Type2Message(tc, type1, challenge, null);
                    msg = new String(Base64.encode(type2.toByteArray()), "US-ASCII");
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            try {
                int response = parseResponseCode();
                if (response != HTTP_UNAUTHORIZED && response != HTTP_PROXY_AUTH) {
                    return;
                }
                Type1Message type1 = (Type1Message) attemptNegotiation(response);
                if (type1 == null) return; // no NTLM
                int attempt = 0;
                while (attempt < MAX_REDIRECTS) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 20.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

         * using default values from the current environment.
         *
         * @param type1 The Type-1 message which this represents a response to.
         */
        public Type2Message(Type1Message type1) {
            this(type1, null, null);
        }
    
        /**
         * Creates a Type-2 message in response to the given Type-1 message.
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 12.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmContext.java

                this.workstation,
                this.ntlmsspFlags,
                this.auth.isGuest() || !this.auth.isAnonymous());
        }
    
    
        protected byte[] makeNegotiate ( byte[] token ) {
            Type1Message msg1 = new Type1Message(this.transportContext, this.ntlmsspFlags, this.auth.getUserDomain(), this.workstation);
            byte[] out = msg1.toByteArray();
            this.type1Bytes = out;
    
            if ( log.isTraceEnabled() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 15.7K bytes
    - Viewed (0)
Back to top