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

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

public class EncryptionTypeInfo2Encoder
extends java.lang.Object

Version:
$Rev: 540371 $, $Date: 2007-05-21 17:00:43 -0700 (Mon, 21 May 2007) $
Author:
Apache Directory Project

Constructor Summary
EncryptionTypeInfo2Encoder()
           
 
Method Summary
protected static org.apache.directory.shared.asn1.der.DERSequence encode(EncryptionTypeInfo2Entry entry)
          ETYPE-INFO2-ENTRY ::= SEQUENCE { etype [0] Int32, salt [1] KerberosString OPTIONAL, s2kparams [2] OCTET STRING OPTIONAL }
static byte[] encode(EncryptionTypeInfo2Entry[] entries)
          Encodes an array of EncryptionTypeInfo2Entrys into a byte array.
protected static org.apache.directory.shared.asn1.der.DERSequence encodeSequence(EncryptionTypeInfo2Entry[] entries)
          ETYPE-INFO2 ::= SEQUENCE SIZE (1..MAX) OF ETYPE-INFO2-ENTRY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionTypeInfo2Encoder

public EncryptionTypeInfo2Encoder()
Method Detail

encode

public static byte[] encode(EncryptionTypeInfo2Entry[] entries)
                     throws java.io.IOException
Encodes an array of EncryptionTypeInfo2Entrys into a byte array.

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

encodeSequence

protected static org.apache.directory.shared.asn1.der.DERSequence encodeSequence(EncryptionTypeInfo2Entry[] entries)
ETYPE-INFO2 ::= SEQUENCE SIZE (1..MAX) OF ETYPE-INFO2-ENTRY


encode

protected static org.apache.directory.shared.asn1.der.DERSequence encode(EncryptionTypeInfo2Entry entry)
ETYPE-INFO2-ENTRY ::= SEQUENCE { etype [0] Int32, salt [1] KerberosString OPTIONAL, s2kparams [2] OCTET STRING OPTIONAL }



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