gnu.crypto.sasl
Class OutputBuffer
public class OutputBuffer
byte[] | encode() - Returns the encoded form of the current buffer including the 4-byte
length header.
|
void | setEOS(byte[] b) - Encodes a SASL EOS to the current buffer.
|
void | setMPI(BigInteger val) - Encodes a SASL MPI to the current buffer.
|
void | setOS(byte[] b) - Encodes a SASL OS to the current buffer.
|
void | setScalar(int count, int b) - Encodes a SASL scalar quantity,
count -octet long, to the
current buffer.
|
void | setText(String str) - Encodes a SASL Text to the current buffer.
|
byte[] | wrap() - Returns the encoded form of the current buffer excluding the 4-byte
length header.
|
OutputBuffer
public OutputBuffer()
encode
public byte[] encode()
throws SaslEncodingException
Returns the encoded form of the current buffer including the 4-byte
length header.
setEOS
public void setEOS(byte[] b)
throws IOException
Encodes a SASL EOS to the current buffer.
setMPI
public void setMPI(BigInteger val)
throws IOException
Encodes a SASL MPI to the current buffer.
setOS
public void setOS(byte[] b)
throws IOException
Encodes a SASL OS to the current buffer.
setScalar
public void setScalar(int count,
int b)
throws IOException
Encodes a SASL scalar quantity, count
-octet long, to the
current buffer.
count
- number of octets to encode b
with.b
- the scalar quantity.
setText
public void setText(String str)
throws IOException
Encodes a SASL Text to the current buffer.
wrap
public byte[] wrap()
throws SaslEncodingException
Returns the encoded form of the current buffer excluding the 4-byte
length header.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.