Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for getOEMEncoding (0.19 sec)

  1. src/main/java/jcifs/util/Strings.java

            if ( str == null ) {
                return new byte[0];
            }
            try {
                return str.getBytes(config.getOemEncoding());
            }
            catch ( UnsupportedEncodingException e ) {
                throw new RuntimeCIFSException("Unsupported OEM encoding " + config.getOemEncoding(), e);
            }
        }
    
    
        /**
         * @param src
         * @param srcIndex
         * @param len
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/ntlmssp/Type1Message.java

                suppliedDomain = new String(domain, getOEMEncoding());
            }
            String suppliedWorkstation = null;
            if ((flags & NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED) != 0) {
                byte[] workstation = readSecurityBuffer(material, 24);
                suppliedWorkstation = new String(workstation, getOEMEncoding());
            }
            setFlags(flags);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/ntlmssp/Type1Message.java

                setSuppliedDomain(new String(domain, getOEMEncoding()));
            }
            pos += 8;
    
            if ( ( flags & NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED ) != 0 ) {
                byte[] workstation = readSecurityBuffer(material, pos);
                setSuppliedWorkstation(new String(workstation, getOEMEncoding()));
            }
            pos += 8;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Sep 02 12:55:08 UTC 2018
    - 7.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/config/DelegatingConfiguration.java

            return this.delegate.getSessionLimit();
        }
    
    
        /**
         * {@inheritDoc}
         * 
         * @see jcifs.Configuration#getOemEncoding()
         */
        @Override
        public String getOemEncoding () {
            return this.delegate.getOemEncoding();
        }
    
    
        /**
         * {@inheritDoc}
         * 
         * @see jcifs.Configuration#getLocalTimezone()
         */
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 17.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/ntlmssp/Type2Message.java

                    targetBytes = ( flags & NTLMSSP_NEGOTIATE_UNICODE ) != 0 ? targetName.getBytes(UNI_ENCODING)
                            : targetName.toUpperCase().getBytes(getOEMEncoding());
                    size += targetBytes.length;
                }
                else {
                    flags &= ( 0xffffffff ^ NTLMSSP_REQUEST_TARGET );
                }
            }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

                        target = (flags & NTLMSSP_NEGOTIATE_UNICODE) != 0 ?
                                targetName.getBytes(UNI_ENCODING) :
                                targetName.toUpperCase().getBytes(getOEMEncoding());
                    } else {
                        flags &= (0xffffffff ^ NTLMSSP_REQUEST_TARGET);
                    }
                }
                if (targetInformation != null) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 12.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                flags = NTLMSSP_NEGOTIATE_NTLM | NTLMSSP_NEGOTIATE_OEM;
                charset = getOEMEncoding();
            } else {
                _sessionKey = readSecurityBuffer(material, 52);
                flags = readULong(material, 60);
                charset = ((flags & NTLMSSP_NEGOTIATE_UNICODE) != 0) ?
                    UNI_ENCODING : getOEMEncoding();
            }
            setSessionKey(_sessionKey);
            setFlags(flags);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/ntlmssp/NtlmMessage.java

            writeUShort(dest, offset + 2, length);
            writeULong(dest, offset + 4, bodyOffset);
            System.arraycopy(src, 0, dest, bodyOffset, length);
        }
    
        static String getOEMEncoding() {
            return OEM_ENCODING;
        }
    
        /**
         * Returns the raw byte representation of this message.
         *
         * @return A <code>byte[]</code> containing the raw message material.
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 4.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/NtlmMessage.java

            if ( src != null && src.length > 0 ) {
                System.arraycopy(src, 0, dest, pos, src.length);
                return src.length;
            }
            return 0;
        }
    
    
        static String getOEMEncoding () {
            return OEM_ENCODING;
        }
    
    
        /**
         * Returns the raw byte representation of this message.
         *
         * @return A <code>byte[]</code> containing the raw message material.
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/NamingTest.java

            Assume.assumeFalse("Unicode support", getContext().getConfig().isUseUnicode());
            Assume.assumeFalse("SMB2", getContext().getConfig().getMaximumVersion().isSMB2());
            String oemEncoding = getContext().getConfig().getOemEncoding();
            String str = null;
            try {
                switch ( oemEncoding.toLowerCase(Locale.ROOT) ) {
                case "cp850":
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jun 06 10:48:05 UTC 2020
    - 7K bytes
    - Viewed (0)
Back to top