Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for RuntimeException (0.17 sec)

  1. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

        {
            if (password == null)
                throw new RuntimeException("Password parameter is required");
            try {
                MD4 md4 = new MD4();
                md4.update(password.getBytes(SmbConstants.UNI_ENCODING));
                return md4.digest();
            } catch (UnsupportedEncodingException uee) {
                throw new RuntimeException(uee.getMessage());
            }
        }
    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)
  2. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                        if (lmHash.length == 0 && ntHash.length == 0) {
                            throw new RuntimeException("Null setup prohibited.");
                        }
                    } else if( DISABLE_PLAIN_TEXT_PASSWORDS ) {
                        throw new RuntimeException( "Plain text passwords are disabled" );
                    } else if( useUnicode ) {
                        // plain text
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDescResponse.java

            try {
                securityDescriptor = new SecurityDescriptor();
                bufferIndex += securityDescriptor.decode(buffer, bufferIndex, len);
            } catch (IOException ioe) {
                throw new RuntimeException(ioe.getMessage());
            }
    
            return bufferIndex - start;
        }
        public String toString() {
            return new String( "NtTransQuerySecurityResponse[" +
                super.toString() + "]" );
        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 2.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

                            if ( this.lmHash.length == 0 && this.ntHash.length == 0 ) {
                                throw new RuntimeException("Null setup prohibited.");
                            }
                        }
                        else if ( tc.getConfig().isDisablePlainTextPasswords() ) {
                            throw new RuntimeException("Plain text passwords are disabled");
                        }
                        else {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Mar 17 10:20:23 GMT 2019
    - 8.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

                    password = session.auth.getAnsiHash( session.transport.server.encryptionKey );
                    passwordLength = password.length;
                } else if( DISABLE_PLAIN_TEXT_PASSWORDS ) {
                    throw new RuntimeException( "Plain text passwords are disabled" );
                } else {
                    // plain text
                    password = new byte[(session.auth.password.length() + 1) * 2];
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                                rc4.update(masterKey, 0, 16, exchangedKey, 0);
                            } catch (GeneralSecurityException gse) {
                                throw new RuntimeException("", gse);
                            }
    */
    
                            setSessionKey(exchangedKey);
                        } else {
                            masterKey = ntlm2SessionKey;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java

                                            buffer[bufferIndex + len + 1] != (byte)0x00 ) {
                                len += 2;
                                if( len > 256 ) {
                                    throw new RuntimeException( "zero termination not found" );
                                }
                            }
                            server.oemDomainName = new String( buffer, bufferIndex,
                                    len, UNI_ENCODING );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/Kerb5Context.java

            }
            catch (
                ClassNotFoundException |
                NoSuchMethodException |
                RuntimeException ex ) {
                if ( log.isDebugEnabled() ) {
                    log.debug("Failed to initalize ExtendedGSSContext initializdation for OracleJDK / OpenJDK", 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/smb1/smb1/ServerMessageBlock.java

                        len += 2;
                        if( len > maxLen ) {
    if( log.level > 0 )
    Hexdump.hexdump( System.err, src, srcIndex, maxLen < 128 ? maxLen + 8 : 128 );
                            throw new RuntimeException( "zero termination not found" );
                        }
                    }
                    str = new String( src, srcIndex, len, UNI_ENCODING );
                } else {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 21K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

                andxCommand = (byte)0xFF;
                andx = null;
            } else if( andx == null ) {
                andxCommand = (byte)0xFF;
                throw new RuntimeException( "no andx command supplied with response" );
            } else {
    
                /*
                 * Set bufferIndex according to andxOffset
                 */
    
                bufferIndex = headerStart + andxOffset;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 11.3K bytes
    - Viewed (0)
Back to top