org.apache.directory.server.kerberos.protocol.codec
Class KerberosDecoder

java.lang.Object
  extended by org.apache.mina.filter.codec.ProtocolDecoderAdapter
      extended by org.apache.directory.server.kerberos.protocol.codec.KerberosDecoder
All Implemented Interfaces:
org.apache.mina.filter.codec.ProtocolDecoder

public class KerberosDecoder
extends org.apache.mina.filter.codec.ProtocolDecoderAdapter

Author:
Apache Directory Project

Constructor Summary
KerberosDecoder()
           
 
Method Summary
 void decode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out)
           
static ApRep decodeApRep(byte[] data)
          Decode a AP-REP structure
static ApReq decodeApReq(byte[] data)
          Decode a AP-REQ structure
static Authenticator decodeAuthenticator(byte[] data)
          Decode a Authenticator structure
static AuthorizationData decodeAuthorizationData(byte[] data)
          Decode a AuthorizationData structure
static EncApRepPart decodeEncApRepPart(byte[] data)
          Decode an EncApRepPart structure
static EncAsRepPart decodeEncAsRepPart(byte[] data)
          Decode an EncAsRepPart structure
static EncKdcRepPart decodeEncKdcRepPart(byte[] data)
          Decode an EncKdcRepPart structure
static EncKrbPrivPart decodeEncKrbPrivPart(byte[] data)
          Decode an EncKrbPrivPart structure
static EncryptedData decodeEncryptedData(byte[] data)
          Decode an EncrytedData structure
static EncryptionKey decodeEncryptionKey(byte[] data)
          Decode an EncryptionKey structure
static EncTicketPart decodeEncTicketPart(byte[] data)
          Decode an EncTicketPart structure
static KrbPriv decodeKrbPriv(byte[] data)
          Decode a KRB-PRIV structure
static PaEncTsEnc decodePaEncTsEnc(byte[] data)
          Decode an PaEncTsEnc structure
static PrincipalName decodePrincipalName(byte[] data)
          Decode an PrincipalName structure
static Ticket decodeTicket(byte[] data)
          Decode a Ticket structure
 
Methods inherited from class org.apache.mina.filter.codec.ProtocolDecoderAdapter
dispose, finishDecode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KerberosDecoder

public KerberosDecoder()
Method Detail

decode

public void decode(org.apache.mina.core.session.IoSession session,
                   org.apache.mina.core.buffer.IoBuffer in,
                   org.apache.mina.filter.codec.ProtocolDecoderOutput out)
            throws IOException
Throws:
IOException

decodeEncryptedData

public static EncryptedData decodeEncryptedData(byte[] data)
                                         throws KerberosException
Decode an EncrytedData structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of EncryptedData
Throws:
KerberosException - If the decoding fails

decodePaEncTsEnc

public static PaEncTsEnc decodePaEncTsEnc(byte[] data)
                                   throws KerberosException
Decode an PaEncTsEnc structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of PaEncTsEnc
Throws:
KerberosException - If the decoding fails

decodeEncApRepPart

public static EncApRepPart decodeEncApRepPart(byte[] data)
                                       throws KerberosException
Decode an EncApRepPart structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of EncApRepPart
Throws:
KerberosException - If the decoding fails

decodeEncKdcRepPart

public static EncKdcRepPart decodeEncKdcRepPart(byte[] data)
                                         throws KerberosException
Decode an EncKdcRepPart structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of EncKdcRepPart
Throws:
KerberosException - If the decoding fails

decodeEncKrbPrivPart

public static EncKrbPrivPart decodeEncKrbPrivPart(byte[] data)
                                           throws KerberosException
Decode an EncKrbPrivPart structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of EncKrbPrivPart
Throws:
KerberosException - If the decoding fails

decodeEncTicketPart

public static EncTicketPart decodeEncTicketPart(byte[] data)
                                         throws KerberosException
Decode an EncTicketPart structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of EncTicketPart
Throws:
KerberosException - If the decoding fails

decodeEncryptionKey

public static EncryptionKey decodeEncryptionKey(byte[] data)
                                         throws KerberosException
Decode an EncryptionKey structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of EncryptionKey
Throws:
KerberosException - If the decoding fails

decodePrincipalName

public static PrincipalName decodePrincipalName(byte[] data)
                                         throws KerberosException
Decode an PrincipalName structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of PrincipalName
Throws:
KerberosException - If the decoding fails

decodeTicket

public static Ticket decodeTicket(byte[] data)
                           throws KerberosException
Decode a Ticket structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of Ticket
Throws:
KerberosException - If the decoding fails

decodeAuthenticator

public static Authenticator decodeAuthenticator(byte[] data)
                                         throws KerberosException
Decode a Authenticator structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of Authenticator
Throws:
KerberosException - If the decoding fails

decodeAuthorizationData

public static AuthorizationData decodeAuthorizationData(byte[] data)
                                                 throws KerberosException
Decode a AuthorizationData structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of AuthorizationData
Throws:
KerberosException - If the decoding fails

decodeApRep

public static ApRep decodeApRep(byte[] data)
                         throws KerberosException
Decode a AP-REP structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of ApRep
Throws:
KerberosException - If the decoding fails

decodeApReq

public static ApReq decodeApReq(byte[] data)
                         throws KerberosException
Decode a AP-REQ structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of ApReq
Throws:
KerberosException - If the decoding fails

decodeKrbPriv

public static KrbPriv decodeKrbPriv(byte[] data)
                             throws KerberosException
Decode a KRB-PRIV structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of KrbPriv
Throws:
KerberosException - If the decoding fails

decodeEncAsRepPart

public static EncAsRepPart decodeEncAsRepPart(byte[] data)
                                       throws KerberosException
Decode an EncAsRepPart structure

Parameters:
data - The byte array containing the data structure to decode
Returns:
An instance of EncAsRepPart
Throws:
KerberosException - If the decoding fails


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.