protected String makeRequest ( boolean includePassword ) { StringBuffer buf = new StringBuffer ( ) ; buf . append ( VERSION ) . append ( CRLF ) ; buf . append ( COMMAND ) . append ( String . valueOf ( command ) ) . append ( CRLF ) ; buf . append ( USERNAME ) . append ( this . username ) . append ( CRLF ) ; String pwd = getPassphrase ( ) ; buf . append ( PASSPHRASE ) ; if ( includePassword ) { if ( pwd != null ) { buf . append ( pwd ) ; } } else { for ( int i = 0 ; pwd != null && i < pwd . length ( ) ; i ++ ) { buf . append ( ' ' ) ; } } buf . append ( CRLF ) ; buf . append ( LIFETIME ) . append ( String . valueOf ( lifetime ) ) . append ( CRLF ) ; return buf . toString ( ) ; }
Serializes the parameters into a MyProxy request . Subclasses should overwrite this function and append the custom parameters to the output of this function .