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: 540371 $, $Date: 2007-05-21 20:00:43 -0400 (Mon, 21 May 2007) $
Author:
Apache Directory Project

Constructor Summary
PreAuthenticationDataDecoder()
           
 
Method Summary
 PreAuthenticationData decode(byte[] encodedPreAuthData)
          Decodes a byte array into PreAuthenticationData.
protected static PreAuthenticationData 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 PreAuthenticationData[] 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 PreAuthenticationData decode(byte[] encodedPreAuthData)
                             throws java.io.IOException
Decodes a byte array into PreAuthenticationData.

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

decodeSequence

protected static PreAuthenticationData[] 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 PreAuthenticationData 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-2007 The Apache Software Foundation. All Rights Reserved.