Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for IllegalArgumentException (0.31 sec)

  1. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformation.java

            switch ( il ) {
            case FileSystemInformation.SMB_INFO_ALLOCATION:
                return 0x1;
            case FileSystemInformation.FS_SIZE_INFO:
                return 0x103;
            }
            throw new IllegalArgumentException("Unhandled information level");
        }
    
    
        @Override
        protected int writeDataWireFormat ( byte[] dst, int dstIndex ) {
            return 0;
        }
    
    
        @Override
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/MIEName.java

            int i;
            int len;
            if ( buf.length < TOK_ID_SIZE + MECH_OID_LEN_SIZE ) {
                throw new IllegalArgumentException();
            }
            // TOK_ID
            for ( i = 0; i < TOK_ID.length; i++ ) {
                if ( TOK_ID[ i ] != buf[ i ] ) {
                    throw new IllegalArgumentException();
                }
            }
            // MECH_OID_LEN
            len = 0xff00 & ( buf[ i++ ] << 8 );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SID.java

         * This is the last subauthority identifier
         * 
         * @return the RID
         */
        @Override
        public int getRid () {
            if ( getType() == SID_TYPE_DOMAIN )
                throw new IllegalArgumentException("This SID is a domain sid");
            return this.sub_authority[ this.sub_authority_count - 1 ];
        }
    
    
        @Override
        public int getType () {
            if ( this.origin_server != null )
    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)
  4. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

            if( domain == null || username == null ||
                                        ansiHash == null || unicodeHash == null ) {
                throw new IllegalArgumentException( "External credentials cannot be null" );
            }
            this.domain = domain;
            this.username = username;
            this.password = null;
            this.challenge = challenge;
    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)
  5. src/main/java/jcifs/smb/NtlmNtHashAuthenticator.java

            super(domain, username, null, AuthenticationType.USER);
            if ( passwordHash == null || passwordHash.length != 16 ) {
                throw new IllegalArgumentException("Password hash must be provided, expected length 16 byte");
            }
            this.ntHash = passwordHash;
        }
    
    
        /**
         * Create username/password credentials with specified domain
         * 
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/Encdec.java

                    return enc_uint64be( date.getTime(), dst, di );
                case TIME_1970_MILLIS_64LE:
                    return enc_uint64le( date.getTime(), dst, di );
                default:
                    throw new IllegalArgumentException( "Unsupported time encoding" );
            }
        }
    
        /* Decode times
         */
    
        public static Date dec_time( byte[] src, int si, int enc )
        {
            long t;
        
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

         * @see jcifs.internal.dfs.DfsReferralDataInternal#stripPathConsumed(int)
         */
        @Override
        public void stripPathConsumed ( int i ) {
            if ( i > this.pathConsumed ) {
                throw new IllegalArgumentException("Stripping more than consumed");
            }
            this.pathConsumed -= i;
        }
    
    
        @Override
        public void fixupDomain ( String dom ) {
            String s = getServer();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:13:49 GMT 2021
    - 11K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/Kerb5Context.java

                        INQUIRE_TYPE_SESSION_KEY
                    });
                    return k.getEncoded();
                }
                catch (
                    IllegalAccessException |
                    IllegalArgumentException |
                    InvocationTargetException ex ) {
                    throw new SmbException("Failed to query Kerberos session key from ExtendedGSSContext", ex);
                }
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Aug 02 08:22:42 GMT 2018
    - 13.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/NtlmContext.java

         * 
         */
        public static ASN1ObjectIdentifier NTLMSSP_OID;
    
        static {
            try {
                NTLMSSP_OID = new ASN1ObjectIdentifier("1.3.6.1.4.1.311.2.2.10");
            }
            catch ( IllegalArgumentException e ) {
                log.error("Failed to parse OID", e);
            }
        }
    
        private NtlmPasswordAuthenticator auth;
        private int ntlmsspFlags;
        private String workstation;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 15.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

        }
        protected void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException {
            int off, flags, length;
    
            if (buf.length < max_recv)
                throw new IllegalArgumentException("buffer too small");
    
            if (isStart && !isDirect) { // start of new frag, do trans
                off = in.read(buf, 0, 1024);
            } else {
                off = in.readDirect(buf, 0, buf.length);
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.7K bytes
    - Viewed (0)
Back to top