org.apache.directory.server.kerberos.shared.service
Class LockBox

java.lang.Object
  extended byorg.apache.directory.server.kerberos.shared.service.LockBox

public class LockBox
extends java.lang.Object

A Hashed Adapter encapsulating ASN.1 encoders and decoders and cipher text engines to perform seal() and unseal() operations. A seal() operation performs an encode and an encrypt, while an unseal() operation performs a decrypt and a decode.


Constructor Summary
LockBox()
           
 
Method Summary
 EncryptedData seal(EncryptionKey key, Encodable encodable)
           
 Encodable unseal(java.lang.Class hint, EncryptionKey key, EncryptedData data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockBox

public LockBox()
Method Detail

seal

public EncryptedData seal(EncryptionKey key,
                          Encodable encodable)
                   throws KerberosException
Throws:
KerberosException

unseal

public Encodable unseal(java.lang.Class hint,
                        EncryptionKey key,
                        EncryptedData data)
                 throws KerberosException
Throws:
KerberosException