|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.jgss.GSSToken
public abstract class GSSToken
Utilities for processing GSS Tokens.
| Constructor Summary | |
|---|---|
GSSToken()
|
|
| Method Summary | |
|---|---|
static void |
debug(String str)
|
static String |
getHexBytes(byte[] bytes)
|
static String |
getHexBytes(byte[] bytes,
int len)
|
static String |
getHexBytes(byte[] bytes,
int pos,
int len)
|
static int |
readBigEndian(byte[] data,
int pos,
int size)
|
static void |
readFully(InputStream is,
byte[] buffer)
Blocks till the required number of bytes have been read from the input stream. |
static void |
readFully(InputStream is,
byte[] buffer,
int offset,
int len)
Blocks till the required number of bytes have been read from the input stream. |
static int |
readInt(byte[] src,
int pos)
Reads a two byte integer value from a byte array. |
static int |
readInt(InputStream is)
Reads a two byte integer value from an InputStream. |
static int |
readLittleEndian(byte[] data,
int pos,
int size)
Reads an integer value from a byte array in little endian form. |
static void |
writeBigEndian(int value,
byte[] array)
|
static void |
writeBigEndian(int value,
byte[] array,
int pos)
|
static int |
writeInt(int val,
byte[] dest,
int pos)
Writes a two byte integer value to a byte array. |
static void |
writeInt(int val,
OutputStream os)
Writes a two byte integer value to a OutputStream. |
static void |
writeLittleEndian(int value,
byte[] array)
Copies an integer value to a byte array in little endian form. |
static void |
writeLittleEndian(int value,
byte[] array,
int pos)
Copies an integer value to a byte array in little endian form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GSSToken()
| Method Detail |
|---|
public static final void writeLittleEndian(int value,
byte[] array)
value - the integer value to writearray - the byte array into which the integer must be copied. It
is assumed that the array will be large enough to hold the 4 bytes of
the integer.
public static final void writeLittleEndian(int value,
byte[] array,
int pos)
value - the integer value to writearray - the byte array into which the integer must be copied. It
is assumed that the array will be large enough to hold the 4 bytes of
the integer.pos - the position at which to start writing
public static final void writeBigEndian(int value,
byte[] array)
public static final void writeBigEndian(int value,
byte[] array,
int pos)
public static final int readLittleEndian(byte[] data,
int pos,
int size)
data - the array containing the bytes of the integer valuepos - the offset in the array
public static final int readBigEndian(byte[] data,
int pos,
int size)
public static final void writeInt(int val,
OutputStream os)
throws IOException
val - the integer value. It will lose the high-order two bytes.os - the OutputStream to write to
IOException - if an error occurs while writing to the OutputStream
public static final int writeInt(int val,
byte[] dest,
int pos)
val - the integer value. It will lose the high-order two bytes.dest - the byte array to write topos - the offset to start writing to
public static final int readInt(InputStream is)
throws IOException
is - the InputStream to read from
IOException - if some errors occurs while reading the integer
bytes.
public static final int readInt(byte[] src,
int pos)
src - the byte arra to read frompos - the offset to start reading from
public static final void readFully(InputStream is,
byte[] buffer)
throws IOException
is - the InputStream to read frombuffer - the buffer to store the bytes intothrows - EOFException if EOF is reached before all bytes are
read.
IOException - is an error occurs while reading
public static final void readFully(InputStream is,
byte[] buffer,
int offset,
int len)
throws IOException
is - the InputStream to read frombuffer - the buffer to store the bytes intooffset - the offset to start storing atlen - the number of bytes to readthrows - EOFException if EOF is reached before all bytes are
read.
IOException - is an error occurs while readingpublic static final void debug(String str)
public static final String getHexBytes(byte[] bytes)
public static final String getHexBytes(byte[] bytes,
int len)
public static final String getHexBytes(byte[] bytes,
int pos,
int len)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||