Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for substring (0.15 sec)

  1. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

                    user = (index != -1) ? userInfo.substring(0, index) : userInfo;
                    if (index != -1) password = userInfo.substring(index + 1);
                    index = user.indexOf('\\');
                    if (index == -1) index = user.indexOf('/');
                    domain = (index != -1) ? user.substring(0, index) : domain;
                    user = (index != -1) ? user.substring(index + 1) : user;
                }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 20.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

                if (ci > 0) {
                    domain = username.substring(ci + 1);
                    username = username.substring(0, ci);
                } else {
                    ci = username.indexOf('\\');
                    if (ci > 0) {
                        domain = username.substring(0, ci);
                        username = username.substring(ci + 1);
                    }
                }
            }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/DcerpcHandle.java

                    }
                    break;
                case 5:
                    if ( ch == '=' ) {
                        key = str.substring(mark, si).trim();
                        mark = si + 1;
                    }
                    else if ( ch == ',' || ch == ']' ) {
                        String val = str.substring(mark, si).trim();
                        mark = si + 1;
                        if ( key == null )
                            key = "endpoint";
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jun 30 10:11:57 GMT 2019
    - 12.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/DfsImpl.java

            if ( s1 < 0 || s2 < 0 ) {
                log.error("Invalid UNC path " + path);
                return;
            }
    
            String server = path.substring(1, s1).toLowerCase(Locale.ROOT);
            String share = path.substring(s1 + 1, s2);
            String key = path.substring(0, dr.getPathConsumed()).toLowerCase(Locale.ROOT);
    
            DfsReferralDataInternal dri = (DfsReferralDataInternal) dr;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NtlmHttpFilter.java

                }
                else {
                    String auth = new String(Base64.decode(msg.substring(6)), "US-ASCII");
                    int index = auth.indexOf(':');
                    String user = ( index != -1 ) ? auth.substring(0, index) : auth;
                    String password = ( index != -1 ) ? auth.substring(index + 1) : "";
                    index = user.indexOf('\\');
                    if ( index == -1 )
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/Lmhosts.java

                if ( line.length() == 0 ) {
                    continue;
                }
                else if ( line.charAt(0) == '#' ) {
                    if ( line.startsWith("#INCLUDE ") ) {
                        line = line.substring(line.indexOf('\\'));
                        String url = "smb:" + line.replace('\\', '/');
    
                        try ( InputStreamReader rdr = new InputStreamReader(new SmbFileInputStream(url, tc)) ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/http/NtlmSsp.java

                        throws IOException, ServletException {
            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);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 4.4K bytes
    - Viewed (1)
  8. src/test/java/jcifs/tests/DfsTest.java

            int firstSep = dfsRootPath.indexOf('/', 1);
            String dfsShare;
            if ( firstSep > 0 ) {
                dfsShare = dfsRootPath.substring(1, firstSep);
            }
            else {
                dfsShare = dfsRootPath.substring(1, dfsRootPath.length() - 1);
            }
            return dfsShare;
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Mar 01 09:46:04 GMT 2020
    - 13.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/NamingTest.java

            if ( str.length() % maxLen != 0 ) {
                num++;
            }
            String strings[] = new String[num];
            for ( int i = 0; i < num; i++ ) {
                strings[ i ] = str.substring(i * maxLen, Math.min(str.length() - 1, ( i + 1 ) * maxLen));
            }
            return strings;
        }
    
    
        @Test
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 06 10:48:05 GMT 2020
    - 7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SID.java

            this.revision = Byte.parseByte(st.nextToken());
            String tmp = st.nextToken();
            long id = 0;
            if ( tmp.startsWith("0x") )
                id = Long.parseLong(tmp.substring(2), 16);
            else
                id = Long.parseLong(tmp);
    
            this.identifier_authority = new byte[6];
            for ( int i = 5; id > 0; i-- ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.9K bytes
    - Viewed (0)
Back to top