org.erights.e.elib.sealing
Class Sealer

java.lang.Object
  |
  +--org.erights.e.elib.sealing.Sealer
All Implemented Interfaces:
Marker, PassByProxy, Persistent, Serializable

public final class Sealer
extends Object
implements PassByProxy, Persistent

Untamed: Corresponds to an encrypting or signing key.

Author:
Mark S. Miller
See Also:
Serialized Form

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) Sealer(Brand brand)
           
 
Method Summary
 void __printOn(TextWriter out)
          Enabled: Prints using the Brand's name
 Brand getBrand()
          Enabled: Brand of this Sealer/Unsealer pair
 SealedBox seal(Object contents)
          Enabled: @return a SealedBox containing contents that can only be unsealed with the Unsealer of this Brand.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID

myBrand

private final Brand myBrand
Constructor Detail

Sealer

Sealer(Brand brand)
Method Detail

getBrand

public Brand getBrand()
Enabled: Brand of this Sealer/Unsealer pair


seal

public SealedBox seal(Object contents)
Enabled: @return a SealedBox containing contents that can only be unsealed with the Unsealer of this Brand.


__printOn

public void __printOn(TextWriter out)
               throws IOException
Enabled: Prints using the Brand's name

IOException


comments?