org.apache.directory.server.kerberos.shared.io.decoder
Class EncryptedDataDecoder

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.io.decoder.EncryptedDataDecoder

public class EncryptedDataDecoder
extends java.lang.Object

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

Constructor Summary
EncryptedDataDecoder()
           
 
Method Summary
static EncryptedData decode(byte[] encodedEncryptedData)
          Decodes a byte array into an EncryptedData.
static EncryptedData decode(org.apache.directory.shared.asn1.der.DERSequence sequence)
          Decodes a DERSequence into an EncryptedData.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedDataDecoder

public EncryptedDataDecoder()
Method Detail

decode

public static EncryptedData decode(byte[] encodedEncryptedData)
                            throws java.io.IOException
Decodes a byte array into an EncryptedData.

Parameters:
encodedEncryptedData -
Returns:
The EncryptedData.
Throws:
java.io.IOException

decode

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

Parameters:
sequence -
Returns:
The EncryptedData.


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