question: @ Override public String toString ( ) { String result ; if ( valid ) { result = "Output File: " + outputFile . getAbsolutePath ( ) + '\n' ; if ( signMode ) { result += "Keystore: " + keyStorePath + '\n' + "Alias: " + alias + '\n' ; } else { result += ".pfx File:" + keyFilePath + '\n' ; } } else { return invalidMessage ; } result += "Reason: \"" + reason + "\"\n" + "Location: " + location + '\n' ; if ( canEncrypt ( ) ) { result += "Encrypt PDF" + '\n' ; } if ( canFlatten ( ) ) { result += "Flatten PDF" + '\n' ; } if ( certifyMode != ItextFunctions . NOT_CERTIFIED ) { result += "Certify PDF" + '\n' ; } return result ; }
target:  This method is overidden to display messages about its this objects state. Used after calling validate.