public class CipherTextHandler extends Object
| Constructor and Description |
|---|
CipherTextHandler() |
| Modifier and Type | Method and Description |
|---|---|
EncryptedData |
seal(EncryptionKey key,
Encodable encodable,
KeyUsage usage)
Performs an encode and an encrypt.
|
Encodable |
unseal(Class hint,
EncryptionKey key,
EncryptedData data,
KeyUsage usage)
Perform a decrypt and a decode.
|
public EncryptedData seal(EncryptionKey key, Encodable encodable, KeyUsage usage) throws KerberosException
key - The key to use for encrypting.encodable - The Kerberos object to encode.usage - The key usage.KerberosExceptionpublic Encodable unseal(Class hint, EncryptionKey key, EncryptedData data, KeyUsage usage) throws KerberosException
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.KerberosExceptionCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.