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.KerberosException
public 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.KerberosException
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.