Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePKCS8PrivateKeyFromPEM ¶
func ParsePKCS8PrivateKeyFromPEM(key []byte) (*ecdsa.PrivateKey, error)
ParsePKCS8PrivateKeyFromPEM parses PEM encoded PKCS8 Private Key Structure.
Types ¶
type Generator ¶
type Generator struct {
// A 10-character key identifier (kid) key, obtained from your developer account.
KeyId string
// The issuer (iss) registered claim key, whose value is your 10-character Team ID,
// obtained from your developer account.
TeamId string
// TTL (time-to-live), must not be greater than 15777000 (6 months in seconds).
TTL int64
// MusicKit private key.
Secret []byte
}
Generator is a generator of Apple Music JWT token.
Click to show internal directories.
Click to hide internal directories.