| java.lang.Object sun.security.jgss.GSSToken
All known Subclasses: sun.security.jgss.spnego.SpNegoToken, sun.security.jgss.krb5.Krb5Token,
GSSToken | abstract public class GSSToken (Code) | | Utilities for processing GSS Tokens.
version: 1.8, 05/05/07 |
Method Summary | |
final public static void | debug(String str) | final public static String | getHexBytes(byte[] bytes) | final public static String | getHexBytes(byte[] bytes, int len) | final public static String | getHexBytes(byte[] bytes, int pos, int len) | final public static int | readBigEndian(byte[] data, int pos, int size) | final public static void | readFully(InputStream is, byte[] buffer) Blocks till the required number of bytes have been read from the
input stream. | final public 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. | final public static int | readInt(InputStream is) Reads a two byte integer value from an InputStream. | final public static int | readInt(byte[] src, int pos) Reads a two byte integer value from a byte array. | final public static int | readLittleEndian(byte[] data, int pos, int size) Reads an integer value from a byte array in little endian form. | final public static void | writeBigEndian(int value, byte[] array) | final public static void | writeBigEndian(int value, byte[] array, int pos) | final public static void | writeInt(int val, OutputStream os) Writes a two byte integer value to a OutputStream.
Parameters: val - the integer value. | final public static int | writeInt(int val, byte[] dest, int pos) Writes a two byte integer value to a byte array.
Parameters: val - the integer value. | final public static void | writeLittleEndian(int value, byte[] array) Copies an integer value to a byte array in little endian form.
Parameters: value - the integer value to write Parameters: array - the byte array into which the integer must be copied. | final public static void | writeLittleEndian(int value, byte[] array, int pos) Copies an integer value to a byte array in little endian form.
Parameters: value - the integer value to write Parameters: array - the byte array into which the integer must be copied. |
getHexBytes | final public static String getHexBytes(byte[] bytes)(Code) | | |
getHexBytes | final public static String getHexBytes(byte[] bytes, int len)(Code) | | |
getHexBytes | final public static String getHexBytes(byte[] bytes, int pos, int len)(Code) | | |
readBigEndian | final public static int readBigEndian(byte[] data, int pos, int size)(Code) | | |
readFully | final public static void readFully(InputStream is, byte[] buffer) throws IOException(Code) | | Blocks till the required number of bytes have been read from the
input stream.
Parameters: is - the InputStream to read from Parameters: buffer - the buffer to store the bytes into throws EOFException if EOF is reached before all bytes areread. throws: IOException - is an error occurs while reading |
readFully | final public static void readFully(InputStream is, byte[] buffer, int offset, int len) throws IOException(Code) | | Blocks till the required number of bytes have been read from the
input stream.
Parameters: is - the InputStream to read from Parameters: buffer - the buffer to store the bytes into Parameters: offset - the offset to start storing at Parameters: len - the number of bytes to read throws EOFException if EOF is reached before all bytes areread. throws: IOException - is an error occurs while reading |
readInt | final public static int readInt(InputStream is) throws IOException(Code) | | Reads a two byte integer value from an InputStream.
Parameters: is - the InputStream to read from throws: IOException - if some errors occurs while reading the integerbytes. |
readInt | final public static int readInt(byte[] src, int pos)(Code) | | Reads a two byte integer value from a byte array.
Parameters: src - the byte arra to read from Parameters: pos - the offset to start reading from |
readLittleEndian | final public static int readLittleEndian(byte[] data, int pos, int size)(Code) | | Reads an integer value from a byte array in little endian form. This
method allows the reading of two byte values as well as four bytes
values both of which are needed in the Kerberos v5 GSS-API mechanism.
Parameters: data - the array containing the bytes of the integer value Parameters: pos - the offset in the array the integer value |
writeBigEndian | final public static void writeBigEndian(int value, byte[] array)(Code) | | |
writeBigEndian | final public static void writeBigEndian(int value, byte[] array, int pos)(Code) | | |
writeInt | final public static void writeInt(int val, OutputStream os) throws IOException(Code) | | Writes a two byte integer value to a OutputStream.
Parameters: val - the integer value. It will lose the high-order two bytes. Parameters: os - the OutputStream to write to throws: IOException - if an error occurs while writing to the OutputStream |
writeInt | final public static int writeInt(int val, byte[] dest, int pos)(Code) | | Writes a two byte integer value to a byte array.
Parameters: val - the integer value. It will lose the high-order two bytes. Parameters: dest - the byte array to write to Parameters: pos - the offset to start writing to |
writeLittleEndian | final public static void writeLittleEndian(int value, byte[] array)(Code) | | Copies an integer value to a byte array in little endian form.
Parameters: value - the integer value to write Parameters: array - the byte array into which the integer must be copied. Itis assumed that the array will be large enough to hold the 4 bytes ofthe integer. |
writeLittleEndian | final public static void writeLittleEndian(int value, byte[] array, int pos)(Code) | | Copies an integer value to a byte array in little endian form.
Parameters: value - the integer value to write Parameters: array - the byte array into which the integer must be copied. Itis assumed that the array will be large enough to hold the 4 bytes ofthe integer. Parameters: pos - the position at which to start writing |
|
|