29.07.2013 Views

Master of Science thesis Fighting Spam

Master of Science thesis Fighting Spam

Master of Science thesis Fighting Spam

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

{<br />

}<br />

return;<br />

public boolean verify(Certificate RSCert, Certificate CESCert, long serialNumber) throws<br />

Exception<br />

{<br />

throw new Exception("error, transactionlist is encrypted.");<br />

}<br />

public boolean initialVerify(Certificate RSCert, Certificate CESCert,Fingerprint hash)<br />

throws Exception<br />

{<br />

throw new Exception("error, transactionlist is encrypted.");<br />

}<br />

public Fingerprint hashList() throws Exception<br />

{<br />

throw new Exception("error, transactionlist is encrypted.");<br />

}<br />

private Fingerprint hashList(int size) throws Exception<br />

{<br />

throw new Exception("error, transactionlist is encrypted.");<br />

}<br />

public void signList(Certificate cert,RSAPrivateKey key) throws Exception<br />

{<br />

throw new Exception("error, transactionlist is encrypted.");<br />

}<br />

public int numberOfAppearances(Certificate cert) throws Exception<br />

{<br />

throw new Exception("error, transactionlist is encrypted.");<br />

}<br />

public boolean equals(Transactionlist list)<br />

{<br />

if (list instance<strong>of</strong> EncryptedTransactionlist)<br />

return<br />

Cryptotools.equals(this.encryptedTransactionlist,((EncryptedTransactionlist)list).encrypt<br />

edTransactionlist);<br />

return false;<br />

}<br />

public TransactionlistElement elementAt(int index) throws Exception<br />

{<br />

throw new Exception("error, transactionlist is encrypted.");<br />

}<br />

public int length()<br />

{<br />

return 0;<br />

}<br />

public int getSize()<br />

{<br />

return 0;<br />

}<br />

public String printSize()<br />

{<br />

return "0";<br />

}<br />

public String toString()<br />

{<br />

return Cryptotools.byteToHexString(this.encryptedTransactionlist);<br />

}<br />

317

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!