ccachetools

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 7 Imported by: 1

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL