Struct: bearer.Token
import "../ibm-cos-sdk-go/aws/auth/bearer"
Overview
Token provides a type wrapping a bearer token and expiration metadata.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
Method Summary collapse
-
func (t Token) Expired(now time.Time) bool
Expired returns if the token's Expires time is before or equal to the time provided.
Structure Field Details
CanExpire bool
Expires time.Time
Value string
Method Details
func (t Token) Expired(now time.Time) bool
Expired returns if the token's Expires time is before or equal to the time provided. If CanExpire is false, Expired will always return false.
17 18 19 20 21 22 23 |
// File 'aws/auth/bearer/token.go', line 17
|