-
Notifications
You must be signed in to change notification settings - Fork 0
/
jwe.go
23 lines (20 loc) · 916 Bytes
/
jwe.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package jwe
import (
"github.com/picatz/jose/pkg/header"
)
type Header = header.Parameters
const (
Algorithm header.ParamaterName = "alg"
EncryptionAlgorithm header.ParamaterName = "enc"
CompressionAlgorithm header.ParamaterName = "zip"
JWKSetURL header.ParamaterName = "jku"
JSONWebKey header.ParamaterName = "jwk"
KeyID header.ParamaterName = "kid"
X509URL header.ParamaterName = "x5u"
X509CertificateChain header.ParamaterName = "x5c"
X509CertificateSHA1Thumbprint header.ParamaterName = "x5t"
X509CertificateSHA256Thumbprint header.ParamaterName = "x5t#S256"
Type header.ParamaterName = "typ"
ContentType header.ParamaterName = "cty"
Critical header.ParamaterName = "crt"
)