|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.kerberos.shared.keytab.Keytab
public class Keytab
Keytab file.
| Field Summary | |
|---|---|
static byte[] |
VERSION_51
Byte array constant for keytab file format 5.1. |
static byte[] |
VERSION_52
Byte array constant for keytab file format 5.2. |
| Constructor Summary | |
|---|---|
Keytab()
|
|
| Method Summary | |
|---|---|
protected static byte[] |
getBytesFromFile(File file)
Returns the contents of the File in a byte array. |
List<KeytabEntry> |
getEntries()
|
static Keytab |
getInstance()
Returns a new instance of a keytab with the version defaulted to 5.2. |
byte[] |
getKeytabVersion()
|
static Keytab |
read(File file)
Read a keytab file. |
void |
setEntries(List<KeytabEntry> entries)
|
void |
setKeytabVersion(byte[] keytabVersion)
|
void |
write(File file)
Write the keytab to a File. |
protected void |
writeFile(org.apache.mina.core.buffer.IoBuffer buffer,
File file)
Write the contents of the IoBuffer to a File. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte[] VERSION_51
public static final byte[] VERSION_52
| Constructor Detail |
|---|
public Keytab()
| Method Detail |
|---|
public static Keytab read(File file)
throws IOException
file -
IOExceptionpublic static Keytab getInstance()
public void write(File file)
throws IOException
File.
file -
IOExceptionpublic void setEntries(List<KeytabEntry> entries)
entries - The entries to set.public void setKeytabVersion(byte[] keytabVersion)
keytabVersion - The keytabVersion to set.public List<KeytabEntry> getEntries()
public byte[] getKeytabVersion()
protected static byte[] getBytesFromFile(File file)
throws IOException
File in a byte array.
file -
IOException
protected void writeFile(org.apache.mina.core.buffer.IoBuffer buffer,
File file)
throws IOException
IoBuffer to a File.
buffer - file -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||