Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TSAClient ¶
type TSAClient struct { client.TimestampAuthorityClient Signer crypto.Signer CertChain []*x509.Certificate Time time.Time Message []byte }
TSAClient creates RFC3161 timestamps and implements client.TimestampAuthority. Messages to sign can either be provided in the initializer or through the request. Time can be provided in the initializer, or defaults to time.Now(). All other timestamp parameters are hardcoded.
func NewTSAClient ¶
func NewTSAClient(o TSAClientOptions) (*TSAClient, error)
type TSAClientOptions ¶
type TSAClientOptions struct { // Time is an optional timestamp. Default is time.Now(). Time time.Time // Message is the pre-hashed message to sign over, typically a raw signature. Message []byte // Signer is an optional signer created out of band. Client creates one if not set. Signer crypto.Signer }
TSAClientOptions provide customization for the mock TSA client.
Click to show internal directories.
Click to hide internal directories.