|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elib.sealing.Unsealer
Untamed: Corresponds to a decrypting or signature-verifying key
Field Summary | |
private Brand |
myBrand
|
(package private) static long |
serialVersionUID
|
Fields inherited from interface org.erights.e.elib.serial.PassByProxy |
HONORARY, HONORED_NAMES |
Fields inherited from interface org.erights.e.elib.serial.Persistent |
HONORARY, HONORED_NAMES |
Constructor Summary | |
(package private) |
Unsealer(Brand brand)
|
Method Summary | |
void |
__printOn(TextWriter out)
Enabled: Prints using the Brand's name |
Object[] |
amplify(Object specimen)
Enabled: Used in an Unsealer's role as a ValueGuard. |
Brand |
getBrand()
Enabled: The Brand of this Sealer/Unsealer pair. |
Object |
optUnseal(SealedBox optBox,
Class type)
Enabled: If 'optBox' isn't null, it unseals with this sealer, and it's contents is of type 'type', then return those contents; otherwise return null. |
Object |
unseal(SealedBox box)
Enabled: If box was sealed by the Sealer of the same Brand, return its contents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final long serialVersionUID
private final Brand myBrand
Constructor Detail |
Unsealer(Brand brand)
brand
- Method Detail |
public Brand getBrand()
public Object unseal(SealedBox box) throws UnsealingException
UnsealingException
public Object optUnseal(SealedBox optBox, Class type)
public Object[] amplify(Object specimen) throws UnsealingException
A specimen is amplified to the contents of the SealedBox it
offers
for being unsealed by this sealer.
UnsealingException
- If optBox isn't null but fails to unseal,
that's a thrown exception rather than a polite report of
failure.public void __printOn(TextWriter out) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |