class KeytabDecoder
extends java.lang.Object
ByteBuffer into keytab fields.| Constructor and Description |
|---|
KeytabDecoder() |
| Modifier and Type | Method and Description |
|---|---|
private byte[] |
getCountedBytes(java.nio.ByteBuffer buffer)
Use a prefixed 16-bit length to read off raw bytes.
|
private java.lang.String |
getCountedString(java.nio.ByteBuffer buffer)
Use a prefixed 16-bit length to read off a String.
|
private EncryptionKey |
getKeyBlock(java.nio.ByteBuffer buffer)
Read off a 16-bit encryption type and symmetric key material.
|
(package private) java.util.List<KeytabEntry> |
getKeytabEntries(java.nio.ByteBuffer buffer)
Read keytab entries until there is no remaining data
in the buffer.
|
private KeytabEntry |
getKeytabEntry(java.nio.ByteBuffer buffer)
Reads off a "keytab entry," which consists of a principal name,
principal type, key version number, and key material.
|
(package private) byte[] |
getKeytabVersion(java.nio.ByteBuffer buffer)
Read the keytab 16-bit file format version.
|
private java.lang.String |
getPrincipalName(java.nio.ByteBuffer buffer)
Reads off a principal name.
|
byte[] getKeytabVersion(java.nio.ByteBuffer buffer)
java.util.List<KeytabEntry> getKeytabEntries(java.nio.ByteBuffer buffer)
buffer - private KeytabEntry getKeytabEntry(java.nio.ByteBuffer buffer)
private java.lang.String getPrincipalName(java.nio.ByteBuffer buffer)
buffer - private EncryptionKey getKeyBlock(java.nio.ByteBuffer buffer)
private java.lang.String getCountedString(java.nio.ByteBuffer buffer)
private byte[] getCountedBytes(java.nio.ByteBuffer buffer)