forked from I2P_Developers/i2p.i2p
Added Destination constructor which accepts/uses a base64 string arg
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user