Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JOSEEncryption ¶
JOSEEncryption is an autogenerated mock type for the Encrypter type
func NewJOSEEncryption ¶
func NewJOSEEncryption(t interface {
mock.TestingT
Cleanup(func())
}) *JOSEEncryption
NewJOSEEncryption creates a new instance of JOSEEncryption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*JOSEEncryption) Encrypt ¶
func (_m *JOSEEncryption) Encrypt(plaintext []byte) (*jose.JSONWebEncryption, error)
Encrypt provides a mock function with given fields: plaintext
func (*JOSEEncryption) EncryptWithAuthData ¶
func (_m *JOSEEncryption) EncryptWithAuthData(plaintext []byte, aad []byte) (*jose.JSONWebEncryption, error)
EncryptWithAuthData provides a mock function with given fields: plaintext, aad
func (*JOSEEncryption) Options ¶
func (_m *JOSEEncryption) Options() jose.EncrypterOptions
Options provides a mock function with given fields:
Click to show internal directories.
Click to hide internal directories.