package keytab
Import Path
github.com/jcmturner/gokrb5/v8/keytab (on go.dev )
Dependency Relation
imports 12 packages , and imported by 5 packages
Package-Level Type Names (only one)
/* sort by: alphabet | popularity */
type Keytab (struct)
Keytab struct.
Fields (only one )
Entries []entry
Methods (total 7 )
(*Keytab) AddEntry (principalName, realm, password string , ts time .Time , KVNO uint8 , encType int32 ) error
AddEntry adds an entry to the keytab. The password should be provided in plain text and it will be converted using the defined enctype to be stored.
(*Keytab) GetEncryptionKey (princName types .PrincipalName , realm string , kvno int , etype int32 ) (types .EncryptionKey , int , error )
GetEncryptionKey returns the EncryptionKey from the Keytab for the newest entry with the required kvno, etype and matching principal.
If the kvno is zero then the latest kvno will be returned. The kvno is also returned for
(*Keytab) JSON () (string , error )
JSON return information about the keys held in the keytab in a JSON format.
(*Keytab) Marshal () ([]byte , error )
Marshal keytab into byte slice
( Keytab) String () string
(*Keytab) Unmarshal (b []byte ) error
Unmarshal byte slice of Keytab data into Keytab type.
(*Keytab) Write (w io .Writer ) (int , error )
Write the keytab bytes to io.Writer.
Returns the number of bytes written
Implements (at least 2 )
Keytab : github.com/ChrisTrenkamp/goxpath/tree.Result
Keytab : fmt.Stringer
As Outputs Of (at least 3 )
func Load (ktPath string ) (*Keytab , error )
func New () *Keytab
func github.com/jcmturner/gokrb5/v8/credentials.(*Credentials ).Keytab () *Keytab
As Inputs Of (at least 9 )
func github.com/jcmturner/gokrb5/v8/client.NewWithKeytab (username, realm string , kt *Keytab , krb5conf *config .Config , settings ...func(*client .Settings )) *client .Client
func github.com/jcmturner/gokrb5/v8/credentials.(*Credentials ).WithKeytab (kt *Keytab ) *credentials .Credentials
func github.com/jcmturner/gokrb5/v8/messages.NewTicket (cname types .PrincipalName , crealm string , sname types .PrincipalName , srealm string , flags asn1 .BitString , sktab *Keytab , eTypeID int32 , kvno int , authTime, startTime, endTime, renewTill time .Time ) (messages .Ticket , types .EncryptionKey , error )
func github.com/jcmturner/gokrb5/v8/messages.(*APReq ).Verify (kt *Keytab , d time .Duration , cAddr types .HostAddress , snameOverride *types .PrincipalName ) (bool , error )
func github.com/jcmturner/gokrb5/v8/messages.(*Ticket ).DecryptEncPart (keytab *Keytab , sname *types .PrincipalName ) error
func github.com/jcmturner/gokrb5/v8/messages.(*Ticket ).GetPACType (keytab *Keytab , sname *types .PrincipalName , l *log .Logger ) (bool , pac .PACType , error )
func github.com/jcmturner/gokrb5/v8/service.NewSettings (kt *Keytab , settings ...func(*service .Settings )) *service .Settings
func github.com/jcmturner/gokrb5/v8/spnego.SPNEGOKRB5Authenticate (inner http .Handler , kt *Keytab , settings ...func(*service .Settings )) http .Handler
func github.com/jcmturner/gokrb5/v8/spnego.SPNEGOService (kt *Keytab , options ...func(*service .Settings )) *spnego .SPNEGO
Package-Level Functions (total 2)
The pages are generated with Golds v0.6.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds .