Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultJWTClaimsLeeway is a common default for JWT claims leeway. // Leeway is defined by https://godoc.org/gopkg.in/square/go-jose.v2/jwt#Claims.ValidateWithLeeway. DefaultJWTClaimsLeeway = time.Second * 60 // DefaultMaximumJWTNotExpiredPeriod is a common default for the maximum allowed period that a JWT is not expired. DefaultMaximumJWTNotExpiredPeriod = time.Minute * 60 )
Variables ¶
This section is empty.
Functions ¶
func ParseCertificate ¶
func ParseCertificate(pemString string) (*x509.Certificate, error)
ParseCertificate parses a single X509 certificate from the PEM-encoded data. If the data has multiple X509 certificates then an error is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.