Documentation ¶
Overview ¶
Package jwktypes contains types used by the package jwk.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyOp ¶
type KeyOp string
KeyOp is type of "key_ops" JWK parameter defined in RFC 7517 Section 4.3.
const ( // KeyOpSign is used for computing digital signature or MAC. KeyOpSign KeyOp = "sign" // KeyOpVerify is used for verifying digital signature or MAC KeyOpVerify KeyOp = "verify" // KeyOpVerify is used for encrypting content KeyOpEncrypt KeyOp = "encrypt" // KeyOpDecrypt is used for decrypt content and validate decryption, if applicable KeyOpDecrypt KeyOp = "decrypt" // KeyOpWrapKey is used for encrypt key KeyOpWrapKey KeyOp = "wrapKey" // KeyOpUnwrapKey is used for decrypt key and validate decryption, if applicable KeyOpUnwrapKey KeyOp = "unwrapKey" // KeyOpDeriveKey is used for deriving key KeyOpDeriveKey KeyOp = "deriveKey" // KeyOpDeriveBits is used for deriving bits not to be used as a key KeyOpDeriveBits KeyOp = "deriveBits" )
type KeyUse ¶
type KeyUse string
KeyUse is type of "use" JWK parameter defined in RFC 7517 Section 4.2.
Click to show internal directories.
Click to hide internal directories.