public final USK copy() { // We need our own constructor to make sure we copy pubKeyHash. // So clone() doesn't work for this. // FIXME when we are sure we don't need to copy the byte[]'s we might be able to switch back to clone(). return new USK(this); }
public USK copy(long edition) { if(suggestedEdition == edition) return this; return new USK(pubKeyHash, cryptoKey, siteName, edition, cryptoAlgorithm); }
public USK getUSK() { return new USK(pubKeyHash, cryptoKey, siteName, suggestedEdition, cryptoAlgorithm); }
public static USK create(FreenetURI uri) throws MalformedURLException { if(!uri.isUSK()) throw new MalformedURLException("Not a USK"); return new USK(uri.getRoutingKey(), uri.getCryptoKey(), uri.getExtra(), uri.getDocName(), uri.getSuggestedEdition()); }
ark = new USK(ssk, arkNo); } else if(forDiffNodeRef && arkPubKey == null && myARK != null && arkNo > -1) {