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

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

public class KdcRequestEncoder
extends java.lang.Object

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

Constructor Summary
KdcRequestEncoder()
           
 
Method Summary
 void encode(KdcRequest request, java.nio.ByteBuffer out)
          Encodes a KdcRequest into a ByteBuffer.
 byte[] encodeRequestBody(RequestBody requestBody)
          Encodes a KdcRequest into a byte[].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KdcRequestEncoder

public KdcRequestEncoder()
Method Detail

encode

public void encode(KdcRequest request,
                   java.nio.ByteBuffer out)
            throws java.io.IOException
Encodes a KdcRequest into a ByteBuffer. AS-REQ ::= [APPLICATION 10] KDC-REQ TGS-REQ ::= [APPLICATION 12] KDC-REQ

Parameters:
request -
out -
Throws:
java.io.IOException

encodeRequestBody

public byte[] encodeRequestBody(RequestBody requestBody)
                         throws java.io.IOException
Encodes a KdcRequest into a byte[].

Parameters:
requestBody -
Returns:
The encoded KdcRequest.
Throws:
java.io.IOException


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