org.apache.directory.server.kerberos.shared.io.encoder
Class EncryptedDataEncoder

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.io.encoder.EncryptedDataEncoder

public class EncryptedDataEncoder
extends java.lang.Object

Version:
$Rev: 587682 $, $Date: 2007-10-24 00:47:43 +0200 (Mi, 24 Okt 2007) $
Author:
Apache Directory Project

Constructor Summary
EncryptedDataEncoder()
           
 
Method Summary
static byte[] encode(EncryptedData encryptedData)
          Encodes an EncryptedData into a byte array.
static org.apache.directory.shared.asn1.der.DERSequence encodeSequence(EncryptedData encryptedData)
          Encodes an EncryptedData into a DERSequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedDataEncoder

public EncryptedDataEncoder()
Method Detail

encode

public static byte[] encode(EncryptedData encryptedData)
                     throws java.io.IOException
Encodes an EncryptedData into a byte array.

Parameters:
encryptedData -
Returns:
The byte array.
Throws:
java.io.IOException

encodeSequence

public static org.apache.directory.shared.asn1.der.DERSequence encodeSequence(EncryptedData encryptedData)
Encodes an EncryptedData into a DERSequence. EncryptedData ::= SEQUENCE { etype[0] INTEGER, -- EncryptionEngine kvno[1] INTEGER OPTIONAL, cipher[2] OCTET STRING -- ciphertext }

Parameters:
encryptedData -
Returns:
The DERSequence.


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.