Documentation ¶
Overview ¶
Package keytab implements Kerberos keytabs: https://web.mit.edu/kerberos/krb5-devel/doc/formats/keytab_file_format.html.
Index ¶
- type Keytab
- type KeytabImpl
- func (kt *KeytabImpl) GetEncryptionKey(princName types.PrincipalName, realm string, kvno int, etype int32) (types.EncryptionKey, error)
- func (k *KeytabImpl) IsPopulated() bool
- func (kt *KeytabImpl) Marshal() ([]byte, error)
- func (kt *KeytabImpl) Unmarshal(b []byte) error
- func (kt *KeytabImpl) Write(w io.Writer) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeytabImpl ¶
type KeytabImpl struct { Entries []entry // contains filtered or unexported fields }
KeytabImpl struct.
func (*KeytabImpl) GetEncryptionKey ¶
func (kt *KeytabImpl) GetEncryptionKey(princName types.PrincipalName, realm string, kvno int, etype int32) (types.EncryptionKey, error)
GetEncryptionKey returns the EncryptionKey from the Keytab for the newest entry with the required kvno, etype and matching principal.
func (*KeytabImpl) IsPopulated ¶
func (k *KeytabImpl) IsPopulated() bool
func (*KeytabImpl) Marshal ¶
func (kt *KeytabImpl) Marshal() ([]byte, error)
Marshal keytab into byte slice
func (*KeytabImpl) Unmarshal ¶
func (kt *KeytabImpl) Unmarshal(b []byte) error
Unmarshal byte slice of Keytab data into Keytab type.
Click to show internal directories.
Click to hide internal directories.