Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
Header JWSDecodedHeader https://developer.apple.com/documentation/appstoreserverapi/jwsdecodedheader
func (*Header) Certificate ¶
func (h *Header) Certificate(index int) (*x509.Certificate, error)
Certificate 从 header x5c 证书链中获取证书 依次是:
- Certificate(0) Apple leaf certificate
- Certificate(1) Apple intermediate certificate
- Certificate(2) Apple root certificate
type JWS ¶
type JWS struct { Header *Header // contains filtered or unexported fields }
JWS App Store in JSON Web Signature (JWS) format
func (*JWS) VerifyAndBind ¶
VerifyAndBind 验证 jsw 签名及 x5c 证书链,并绑定 jws payload 到 claims
type claims struct { jwt.RegisteredClaims CustomClaims }
Click to show internal directories.
Click to hide internal directories.