org.apache.directory.server.kerberos.protocol
Class KerberosTcpDecoder
java.lang.Object
org.apache.mina.filter.codec.ProtocolDecoderAdapter
org.apache.mina.filter.codec.CumulativeProtocolDecoder
org.apache.directory.server.kerberos.protocol.KerberosTcpDecoder
- All Implemented Interfaces:
- org.apache.mina.filter.codec.ProtocolDecoder
public class KerberosTcpDecoder
- extends org.apache.mina.filter.codec.CumulativeProtocolDecoder
A CumulativeProtocolDecoder
which supports Kerberos operation over TCP,
by reassembling split packets prior to ASN.1 DER decoding.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
Method Summary |
protected boolean |
doDecode(org.apache.mina.common.IoSession session,
org.apache.mina.common.ByteBuffer in,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
|
int |
getMaxObjectSize()
Returns the allowed maximum size of the object to be decoded. |
void |
setMaxObjectSize(int maxObjectSize)
Sets the allowed maximum size of the object to be decoded. |
Methods inherited from class org.apache.mina.filter.codec.CumulativeProtocolDecoder |
decode, dispose |
Methods inherited from class org.apache.mina.filter.codec.ProtocolDecoderAdapter |
finishDecode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KerberosTcpDecoder
public KerberosTcpDecoder()
getMaxObjectSize
public int getMaxObjectSize()
- Returns the allowed maximum size of the object to be decoded.
If the size of the object to be decoded exceeds this value, this
decoder will throw a
BufferDataException
. The default
value is 16384 (16KB).
- Returns:
- The max object size.
setMaxObjectSize
public void setMaxObjectSize(int maxObjectSize)
- Sets the allowed maximum size of the object to be decoded.
If the size of the object to be decoded exceeds this value, this
decoder will throw a
BufferDataException
. The default
value is 16384 (16KB).
- Parameters:
maxObjectSize
-
doDecode
protected boolean doDecode(org.apache.mina.common.IoSession session,
org.apache.mina.common.ByteBuffer in,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
throws java.lang.Exception
- Specified by:
doDecode
in class org.apache.mina.filter.codec.CumulativeProtocolDecoder
- Throws:
java.lang.Exception
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.