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

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

public class PreAuthenticationDataDecoder
extends java.lang.Object

Version:
$Rev: 587624 $, $Date: 2007-10-23 21:22:08 +0200 (Tue, 23 Oct 2007) $
Author:
Apache Directory Project

Constructor Summary
PreAuthenticationDataDecoder()
           
 
Method Summary
 PaData decode(byte[] encodedPreAuthData)
          Decodes a byte array into PaData.
protected static PaData decode(org.apache.directory.shared.asn1.der.DERSequence sequence)
          PA-DATA ::= SEQUENCE { padata-type[1] INTEGER, padata-value[2] OCTET STRING, -- might be encoded AP-REQ }
protected static PaData[] decodeSequence(org.apache.directory.shared.asn1.der.DERSequence sequence)
          KDC-REQ ::= SEQUENCE { pvno[1] INTEGER, msg-type[2] INTEGER, padata[3] SEQUENCE OF PA-DATA OPTIONAL, req-body[4] KDC-REQ-BODY }
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreAuthenticationDataDecoder

public PreAuthenticationDataDecoder()
Method Detail

decode

public PaData decode(byte[] encodedPreAuthData)
              throws java.io.IOException
Decodes a byte array into PaData.

Parameters:
encodedPreAuthData -
Returns:
The PaData.
Throws:
java.io.IOException

decodeSequence

protected static PaData[] decodeSequence(org.apache.directory.shared.asn1.der.DERSequence sequence)
KDC-REQ ::= SEQUENCE { pvno[1] INTEGER, msg-type[2] INTEGER, padata[3] SEQUENCE OF PA-DATA OPTIONAL, req-body[4] KDC-REQ-BODY }


decode

protected static PaData decode(org.apache.directory.shared.asn1.der.DERSequence sequence)
PA-DATA ::= SEQUENCE { padata-type[1] INTEGER, padata-value[2] OCTET STRING, -- might be encoded AP-REQ }



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