public class CipherTextHandler extends Object
| Constructor and Description |
|---|
CipherTextHandler() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(EncryptionKey key,
EncryptedData data,
KeyUsage usage)
Decrypt a block of data.
|
EncryptedData |
encrypt(EncryptionKey key,
byte[] plainText,
KeyUsage usage) |
EncryptedData |
seal(EncryptionKey key,
org.apache.directory.api.asn1.AbstractAsn1Object message,
KeyUsage usage)
Performs an encode and an encrypt.
|
public EncryptedData seal(EncryptionKey key, org.apache.directory.api.asn1.AbstractAsn1Object message, KeyUsage usage) throws KerberosException
key - The key to use for encrypting.encodable - The Kerberos object to encode.usage - The key usage.KerberosExceptionpublic EncryptedData encrypt(EncryptionKey key, byte[] plainText, KeyUsage usage) throws KerberosException
KerberosExceptionpublic byte[] decrypt(EncryptionKey key, EncryptedData data, KeyUsage usage) throws KerberosException
key - The key used to decrypt the datadata - The data to decryptusage - The key usage numberKerberosException - If the decoding failedCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.