68 |
return b.getTarget(); |
return b.getTarget(); |
69 |
} |
} |
70 |
|
|
71 |
|
public String getTitle(PointerId id) |
72 |
|
throws IOException, GeneralSecurityException { |
73 |
|
PointerBlock b = getPointerBlock(id); |
74 |
|
if(b == null) return null; |
75 |
|
return b.getName(); |
76 |
|
} |
77 |
|
|
78 |
public PointerBlock getPointerBlock(PointerId id) |
public PointerBlock getPointerBlock(PointerId id) |
79 |
throws IOException, GeneralSecurityException { |
throws IOException, GeneralSecurityException { |
80 |
if(dbg) p("Get: "+id); |
if(dbg) p("Get: "+id); |
115 |
|
|
116 |
public void set(PointerId id, BlockId target, KeyPair keyPair) |
public void set(PointerId id, BlockId target, KeyPair keyPair) |
117 |
throws IOException, GeneralSecurityException { |
throws IOException, GeneralSecurityException { |
118 |
set(id, target, keyPair, null); |
PointerBlock current = (PointerBlock)getPointerBlock(id); |
119 |
|
if(current == null) |
120 |
|
set(id, target, keyPair, null); |
121 |
|
else |
122 |
|
set(id, target, keyPair, current.getName()); |
123 |
} |
} |
124 |
|
|
125 |
public void set(PointerId id, BlockId target, KeyPair keyPair, |
public void set(PointerId id, BlockId target, KeyPair keyPair, |