org.apache.directory.server.kerberos.shared.crypto.encryption
Class CipherTextHandler
java.lang.Object
org.apache.directory.server.kerberos.shared.crypto.encryption.CipherTextHandler
public class CipherTextHandler
- 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.
- Version:
- $Rev: 902575 $, $Date: 2010-01-24 15:38:06 +0100 (Sun, 24 Jan 2010) $
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CipherTextHandler
public CipherTextHandler()
seal
public EncryptedData seal(EncryptionKey key,
Encodable encodable,
KeyUsage usage)
throws KerberosException
- Performs an encode and an encrypt.
- Parameters:
key
- The key to use for encrypting.encodable
- The Kerberos object to encode.usage
- The key usage.
- Returns:
- The Kerberos EncryptedData.
- Throws:
KerberosException
unseal
public Encodable unseal(java.lang.Class hint,
EncryptionKey key,
EncryptedData data,
KeyUsage usage)
throws KerberosException
- Perform a decrypt and a decode.
- Parameters:
hint
- The class the encrypted data is expected to contain.key
- The key to use for decryption.data
- The data to decrypt.usage
- The key usage.
- Returns:
- The Kerberos object resulting from a successful decrypt and decode.
- Throws:
KerberosException
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.