Documentation
¶
Index ¶
- func MarshalCCache(ccache *credentials.CCache) ([]byte, error)
- func NewCCache(ticket messages.Ticket, key types.EncryptionKey, ...) (*credentials.CCache, error)
- func NewCCacheFromASRep(asRep messages.ASRep) (*credentials.CCache, error)
- func NewCCacheFromTGSRep(tgsRep messages.TGSRep) (*credentials.CCache, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalCCache ¶
func MarshalCCache(ccache *credentials.CCache) ([]byte, error)
MarshalCCache returns the byte representation of the provided CCache such that it can be saved on-disk.
func NewCCache ¶
func NewCCache( ticket messages.Ticket, key types.EncryptionKey, serverName types.PrincipalName, clientName types.PrincipalName, clientRealm string, authTime time.Time, startTime time.Time, endTime time.Time, renewTill time.Time, ) (*credentials.CCache, error)
NewCCache constructs an in-memory CCache.
func NewCCacheFromASRep ¶
func NewCCacheFromASRep(asRep messages.ASRep) (*credentials.CCache, error)
NewCCacheFromASRep constructs an in-memory CCache based on the ticket and key in the provided Kerberos ASRep message. The ASRep message must already be decrypted. The CCache will contain only this ticket and the ticket user will be set as the default principal of the CCache.
func NewCCacheFromTGSRep ¶
func NewCCacheFromTGSRep(tgsRep messages.TGSRep) (*credentials.CCache, error)
NewCCacheFromTGSRep constructs an in-memory CCache based on the ticket and key in the provided Kerberos TGSRep message. The TGSRep message must already be decrypted. The CCache will contain only this ticket and the ticket user will be set as the default principal of the CCache.
Types ¶
This section is empty.