|
||||||||||
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(java.io.File file)
Returns the contents of the File in a byte array. |
java.util.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(java.io.File file)
Read a keytab file. |
void |
setEntries(java.util.List<KeytabEntry> entries)
|
void |
setKeytabVersion(byte[] keytabVersion)
|
void |
write(java.io.File file)
Write the keytab to a File . |
protected void |
writeFile(org.apache.mina.common.ByteBuffer buffer,
java.io.File file)
Write the contents of the ByteBuffer 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(java.io.File file) throws java.io.IOException
file
-
java.io.IOException
public static Keytab getInstance()
public void write(java.io.File file) throws java.io.IOException
File
.
file
-
java.io.IOException
public void setEntries(java.util.List<KeytabEntry> entries)
entries
- The entries to set.public void setKeytabVersion(byte[] keytabVersion)
keytabVersion
- The keytabVersion to set.public java.util.List<KeytabEntry> getEntries()
public byte[] getKeytabVersion()
protected static byte[] getBytesFromFile(java.io.File file) throws java.io.IOException
File
in a byte array.
file
-
java.io.IOException
protected void writeFile(org.apache.mina.common.ByteBuffer buffer, java.io.File file) throws java.io.IOException
ByteBuffer
to a File
.
buffer
- file
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |