Added Destination constructor which accepts/uses a base64 string arg

This commit is contained in:
aum
2005-03-24 08:37:17 +00:00
committed by zzz
parent e614a2f726
commit 1433e20f73

View File

@@ -35,6 +35,15 @@ public class Destination extends DataStructureImpl {
__calculatedHash = null;
}
/**
* alternative constructor which takes a base64 string representation
* @param s a Base64 representation of the destination, as (eg) is used in hosts.txt
*/
public Destination(String s) {
this();
fromBase64(s);
}
public Certificate getCertificate() {
return _certificate;
}