Documentation ¶
Overview ¶
Package jose provides an implementation of the Javascript Object Signing and Encryption.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RSAPrivateKey ¶
func RSAPrivateKey(data []byte) (*rsa.PrivateKey, error)
RSAPrivateKey parses data as *rsa.PrivateKey
Types ¶
type Stamper ¶
type Stamper interface { Encode(payload []byte) (string, error) Encrypt(payload []byte) (string, error) Decode(data string) ([]byte, error) Decrypt(data string) ([]byte, error) }
Stamper is the interface that handles commonly used JOSE operations.
type Standard ¶
type Standard struct {
// contains filtered or unexported fields
}
Standard implements Stamper interface.
func (*Standard) Decrypt ¶
Decrypt parses an encrypted message in compact or full serialization format.
Click to show internal directories.
Click to hide internal directories.