Index
All Classes and Interfaces|All Packages
A
- AbstractXdrType<T> - Class in org.apache.kerby.xdr.type
-
The abstract XDR type for all the XDR types.
- AbstractXdrType(XdrDataType) - Constructor for class org.apache.kerby.xdr.type.AbstractXdrType
-
Default constructor.
- AbstractXdrType(XdrDataType, T) - Constructor for class org.apache.kerby.xdr.type.AbstractXdrType
-
Default constructor.
- asCharArray(byte[]) - Static method in class org.apache.kerby.xdr.type.XdrString
-
Do a simple conversion of an array of 8 bit characters into a string.
B
- BOOLEAN - Enum constant in enum org.apache.kerby.xdr.XdrDataType
- BYTES - Enum constant in enum org.apache.kerby.xdr.XdrDataType
- bytesToHex(byte[]) - Static method in class org.apache.kerby.xdr.util.HexUtil
-
Convert bytes into format as: 02020080
- bytesToHexFriendly(byte[]) - Static method in class org.apache.kerby.xdr.util.HexUtil
-
Convert bytes into friendly format as: 0x02 02 00 80
D
- decode(byte[]) - Method in class org.apache.kerby.xdr.type.AbstractXdrType
- decode(byte[]) - Method in interface org.apache.kerby.xdr.type.XdrType
-
Decode the content bytes into this type.
- decode(ByteBuffer) - Method in class org.apache.kerby.xdr.type.AbstractXdrType
- decode(ByteBuffer) - Method in class org.apache.kerby.xdr.type.XdrSimple
- decode(ByteBuffer) - Method in class org.apache.kerby.xdr.type.XdrStructType
- decode(ByteBuffer) - Method in interface org.apache.kerby.xdr.type.XdrType
-
Decode the content bytes into this type.
- decode(ByteBuffer) - Method in class org.apache.kerby.xdr.type.XdrUnion
- decodeBody(ByteBuffer) - Method in class org.apache.kerby.xdr.type.XdrSimple
E
- encode() - Method in class org.apache.kerby.xdr.type.AbstractXdrType
- encode() - Method in interface org.apache.kerby.xdr.type.XdrType
-
Encode the type, by recursively.
- encode(ByteBuffer) - Method in class org.apache.kerby.xdr.type.AbstractXdrType
- encode(ByteBuffer) - Method in interface org.apache.kerby.xdr.type.XdrType
-
Encode the type, by recursively, using the provided buffer.
- encodeBody() - Method in class org.apache.kerby.xdr.type.XdrSimple
- encodeBody(ByteBuffer) - Method in class org.apache.kerby.xdr.type.AbstractXdrType
- encodeBody(ByteBuffer) - Method in class org.apache.kerby.xdr.type.XdrSimple
-
Put encoded bytes into buffer.
- encodeBody(ByteBuffer) - Method in class org.apache.kerby.xdr.type.XdrStructType
- encodeBody(ByteBuffer) - Method in class org.apache.kerby.xdr.type.XdrUnion
- encodingBodyLength() - Method in class org.apache.kerby.xdr.type.AbstractXdrType
- encodingBodyLength() - Method in class org.apache.kerby.xdr.type.XdrBoolean
-
The length of a signed integer is 4.
- encodingBodyLength() - Method in class org.apache.kerby.xdr.type.XdrBytes
- encodingBodyLength() - Method in class org.apache.kerby.xdr.type.XdrInteger
-
The length of a signed integer is 4.
- encodingBodyLength() - Method in class org.apache.kerby.xdr.type.XdrLong
-
The length of a signed long is 8.
- encodingBodyLength() - Method in class org.apache.kerby.xdr.type.XdrSimple
-
Length including null bytes to maintain an multiple of 4.
- encodingBodyLength() - Method in class org.apache.kerby.xdr.type.XdrString
- encodingBodyLength() - Method in class org.apache.kerby.xdr.type.XdrStructType
- encodingBodyLength() - Method in class org.apache.kerby.xdr.type.XdrUnion
- encodingBodyLength() - Method in class org.apache.kerby.xdr.type.XdrUnsignedInteger
-
The length of an unsigned integer is 4.
- encodingLength() - Method in class org.apache.kerby.xdr.type.AbstractXdrType
- encodingLength() - Method in interface org.apache.kerby.xdr.type.XdrType
-
Get length of encoding bytes by just calculating without real encoding.
- ENUM - Enum constant in enum org.apache.kerby.xdr.XdrDataType
- EnumType - Interface in org.apache.kerby.xdr
-
A helper interface for enum types.
F
- FALSE - Static variable in class org.apache.kerby.xdr.type.XdrBoolean
- fieldsToValues(AbstractXdrType[]) - Method in class org.apache.kerby.xdr.type.XdrStructType
- fieldsToValues(AbstractXdrType[]) - Method in class org.apache.kerby.xdr.type.XdrUnion
- fromByteArray(byte[]) - Static method in class org.apache.kerby.xdr.type.XdrString
-
Convert an array of 8 bit characters into a string.
- fromUTF8ByteArray(byte[]) - Static method in class org.apache.kerby.xdr.type.XdrString
G
- getAllEnumValues() - Method in class org.apache.kerby.xdr.type.XdrEnumerated
- getAllFields() - Method in class org.apache.kerby.xdr.type.XdrStructType
- getAllFields() - Method in class org.apache.kerby.xdr.type.XdrUnion
- getBytes() - Method in class org.apache.kerby.xdr.type.XdrSimple
- getDataType() - Method in class org.apache.kerby.xdr.type.AbstractXdrType
- getDataType() - Method in class org.apache.kerby.xdr.XdrFieldInfo
- getIndex() - Method in class org.apache.kerby.xdr.XdrFieldInfo
- getName() - Method in interface org.apache.kerby.xdr.EnumType
- getPadding() - Method in class org.apache.kerby.xdr.type.XdrBytes
- getPadding() - Method in class org.apache.kerby.xdr.type.XdrString
- getStructTypeInstance(XdrType[], XdrFieldInfo[]) - Method in class org.apache.kerby.xdr.type.XdrStructType
- getUnionInstance(XdrType[], XdrFieldInfo[]) - Method in class org.apache.kerby.xdr.type.XdrUnion
- getValue() - Method in interface org.apache.kerby.xdr.EnumType
- getValue() - Method in class org.apache.kerby.xdr.type.AbstractXdrType
- getValue() - Method in enum org.apache.kerby.xdr.XdrDataType
- getValue() - Method in class org.apache.kerby.xdr.XdrFieldInfo
- getXdrFieldInfos() - Method in class org.apache.kerby.xdr.type.XdrStructType
- getXdrFieldInfos() - Method in class org.apache.kerby.xdr.type.XdrUnion
H
- hex2bytes(String) - Static method in class org.apache.kerby.xdr.util.HexUtil
-
Convert hex string like follows into byte array 02020080
- hex2bytesFriendly(String) - Static method in class org.apache.kerby.xdr.util.HexUtil
-
Convert friendly hex string like follows into byte array 0x02 02 00 80
- HexUtil - Class in org.apache.kerby.xdr.util
-
This is only for test, be careful when use in production codes.
- HexUtil() - Constructor for class org.apache.kerby.xdr.util.HexUtil
I
- INTEGER - Enum constant in enum org.apache.kerby.xdr.XdrDataType
- IOUtil - Class in org.apache.kerby.xdr.util
-
Some IO and file related utilities.
- isSimple(XdrDataType) - Static method in class org.apache.kerby.xdr.type.XdrSimple
L
- LONG - Enum constant in enum org.apache.kerby.xdr.XdrDataType
O
- OPAQUE - Enum constant in enum org.apache.kerby.xdr.XdrDataType
- org.apache.kerby.xdr - package org.apache.kerby.xdr
- org.apache.kerby.xdr.type - package org.apache.kerby.xdr.type
- org.apache.kerby.xdr.util - package org.apache.kerby.xdr.util
R
- readFile(File) - Static method in class org.apache.kerby.xdr.util.IOUtil
-
Read a file and return the content as string assuming UTF8.
- readInput(InputStream) - Static method in class org.apache.kerby.xdr.util.IOUtil
-
Read an input stream and return the content as string assuming UTF8.
- readInputStream(InputStream) - Static method in class org.apache.kerby.xdr.util.IOUtil
- readInputStream(InputStream, byte[]) - Static method in class org.apache.kerby.xdr.util.IOUtil
S
- setBytes(byte[]) - Method in class org.apache.kerby.xdr.type.XdrSimple
- setPadding(int) - Method in class org.apache.kerby.xdr.type.XdrBytes
- setPadding(int) - Method in class org.apache.kerby.xdr.type.XdrString
- setValue(T) - Method in class org.apache.kerby.xdr.type.AbstractXdrType
- split(String, char) - Static method in class org.apache.kerby.xdr.type.XdrString
- STRING - Enum constant in enum org.apache.kerby.xdr.XdrDataType
- STRUCT - Enum constant in enum org.apache.kerby.xdr.XdrDataType
T
- toByteArray(char[]) - Static method in class org.apache.kerby.xdr.type.XdrString
- toByteArray(String) - Static method in class org.apache.kerby.xdr.type.XdrString
- toBytes() - Method in class org.apache.kerby.xdr.type.XdrBoolean
-
Encode boolean type to bytes.
- toBytes() - Method in class org.apache.kerby.xdr.type.XdrBytes
- toBytes() - Method in class org.apache.kerby.xdr.type.XdrEnumerated
- toBytes() - Method in class org.apache.kerby.xdr.type.XdrInteger
-
Encode Integer type to bytes.
- toBytes() - Method in class org.apache.kerby.xdr.type.XdrLong
-
Encode Long type to bytes.
- toBytes() - Method in class org.apache.kerby.xdr.type.XdrSimple
-
Encode simple type to bytes.
- toBytes() - Method in class org.apache.kerby.xdr.type.XdrString
- toBytes() - Method in class org.apache.kerby.xdr.type.XdrUnsignedInteger
-
Encode Unsigned Integer type to bytes.
- toBytes(String) - Static method in class org.apache.kerby.xdr.util.Utf8
- toLowerCase(String) - Static method in class org.apache.kerby.xdr.type.XdrString
-
A locale independent version of toLowerCase.
- toString(byte[]) - Static method in class org.apache.kerby.xdr.util.Utf8
- toUpperCase(String) - Static method in class org.apache.kerby.xdr.type.XdrString
-
A locale independent version of toUpperCase.
- toUTF8ByteArray(char[]) - Static method in class org.apache.kerby.xdr.type.XdrString
- toUTF8ByteArray(char[], OutputStream) - Static method in class org.apache.kerby.xdr.type.XdrString
- toUTF8ByteArray(String) - Static method in class org.apache.kerby.xdr.type.XdrString
- toValue() - Method in class org.apache.kerby.xdr.type.XdrBoolean
-
Decode bytes to boolean value.
- toValue() - Method in class org.apache.kerby.xdr.type.XdrBytes
- toValue() - Method in class org.apache.kerby.xdr.type.XdrEnumerated
- toValue() - Method in class org.apache.kerby.xdr.type.XdrInteger
-
Decode bytes to Integer value.
- toValue() - Method in class org.apache.kerby.xdr.type.XdrLong
-
Decode bytes to Long value.
- toValue() - Method in class org.apache.kerby.xdr.type.XdrSimple
-
Decode bytes to simple value.
- toValue() - Method in class org.apache.kerby.xdr.type.XdrString
- toValue() - Method in class org.apache.kerby.xdr.type.XdrUnsignedInteger
-
Decode bytes to Unsigned Integer value.
- TRUE - Static variable in class org.apache.kerby.xdr.type.XdrBoolean
U
- UNION - Enum constant in enum org.apache.kerby.xdr.XdrDataType
- UNKNOWN - Enum constant in enum org.apache.kerby.xdr.XdrDataType
- UNSIGNED_INTEGER - Enum constant in enum org.apache.kerby.xdr.XdrDataType
- Utf8 - Class in org.apache.kerby.xdr.util
V
- valueOf(String) - Static method in enum org.apache.kerby.xdr.XdrDataType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.apache.kerby.xdr.XdrDataType
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- writeFile(String, File) - Static method in class org.apache.kerby.xdr.util.IOUtil
-
Write a file with the content assuming UTF8.
X
- XdrBoolean - Class in org.apache.kerby.xdr.type
-
Xdr Boolean type from RFC 4506 Boolean type has the same representation as signed integers.
- XdrBoolean() - Constructor for class org.apache.kerby.xdr.type.XdrBoolean
-
Default constructor, generally for decoding as a container
- XdrBoolean(Boolean) - Constructor for class org.apache.kerby.xdr.type.XdrBoolean
-
Constructor with a value, generally for encoding of the value
- XdrBytes - Class in org.apache.kerby.xdr.type
- XdrBytes() - Constructor for class org.apache.kerby.xdr.type.XdrBytes
- XdrBytes(byte[]) - Constructor for class org.apache.kerby.xdr.type.XdrBytes
- XdrDataType - Enum in org.apache.kerby.xdr
-
An enumeration for every XDR type.
- XdrEnumerated<T extends EnumType> - Class in org.apache.kerby.xdr.type
- XdrEnumerated() - Constructor for class org.apache.kerby.xdr.type.XdrEnumerated
-
Default constructor, generally for decoding as a container
- XdrEnumerated(T) - Constructor for class org.apache.kerby.xdr.type.XdrEnumerated
-
Constructor with a value, generally for encoding of the value
- XdrFieldInfo - Class in org.apache.kerby.xdr
-
Representing a field in a XDR struct.
- XdrFieldInfo(int, XdrDataType, Object) - Constructor for class org.apache.kerby.xdr.XdrFieldInfo
-
Constructor.
- XdrInteger - Class in org.apache.kerby.xdr.type
-
Xdr Integer type from RFC 4506 An XDR signed integer is a 32-bit datum that encodes an integer in the range [-2147483648,2147483647].
- XdrInteger() - Constructor for class org.apache.kerby.xdr.type.XdrInteger
- XdrInteger(Integer) - Constructor for class org.apache.kerby.xdr.type.XdrInteger
- XdrLong - Class in org.apache.kerby.xdr.type
-
From RFC 4506 : (MSB) (LSB) +-------+-------+-------+-------+-------+-------+-------+-------+ |byte 0 |byte 1 |byte 2 |byte 3 |byte 4 |byte 5 |byte 6 |byte 7 | +-------+-------+-------+-------+-------+-------+-------+-------+ -----------------------------64 bits----------------------------- HYPER INTEGER UNSIGNED HYPER INTEGER
- XdrLong() - Constructor for class org.apache.kerby.xdr.type.XdrLong
- XdrLong(Long) - Constructor for class org.apache.kerby.xdr.type.XdrLong
- XdrSimple<T> - Class in org.apache.kerby.xdr.type
-
Xdr simple type, of single value other than complex type of multiple values.
- XdrSimple(XdrDataType) - Constructor for class org.apache.kerby.xdr.type.XdrSimple
-
Default constructor, generally for decoding as a value container
- XdrSimple(XdrDataType, T) - Constructor for class org.apache.kerby.xdr.type.XdrSimple
-
Constructor with a value, generally for encoding of the value
- XdrString - Class in org.apache.kerby.xdr.type
- XdrString() - Constructor for class org.apache.kerby.xdr.type.XdrString
- XdrString(String) - Constructor for class org.apache.kerby.xdr.type.XdrString
- XdrStructType - Class in org.apache.kerby.xdr.type
-
For collection type that may consist of dataTypeged fields
- XdrStructType(XdrDataType) - Constructor for class org.apache.kerby.xdr.type.XdrStructType
- XdrStructType(XdrDataType, XdrFieldInfo[]) - Constructor for class org.apache.kerby.xdr.type.XdrStructType
- XdrType - Interface in org.apache.kerby.xdr.type
-
The ASN1 type interface for all ASN1 types.
- XdrUnion - Class in org.apache.kerby.xdr.type
-
A discriminated union is a type composed of a discriminant followed by a type selected from a set of prearranged types according to the value of the discriminant.
- XdrUnion(XdrDataType) - Constructor for class org.apache.kerby.xdr.type.XdrUnion
- XdrUnion(XdrDataType, XdrFieldInfo[]) - Constructor for class org.apache.kerby.xdr.type.XdrUnion
- XdrUnsignedInteger - Class in org.apache.kerby.xdr.type
-
Xdr Unsigned Integer type from RFC 4506 An XDR unsigned integer is a 32-bit datum that encodes a non-negative integer in the range [0,4294967295].
- XdrUnsignedInteger() - Constructor for class org.apache.kerby.xdr.type.XdrUnsignedInteger
- XdrUnsignedInteger(Long) - Constructor for class org.apache.kerby.xdr.type.XdrUnsignedInteger
- XdrUnsignedInteger(String) - Constructor for class org.apache.kerby.xdr.type.XdrUnsignedInteger
All Classes and Interfaces|All Packages