2019-03-11 15:54:35 +00:00
|
|
|
package registration // import "github.com/xenolf/lego/registration"
|
2018-12-06 21:50:17 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"crypto"
|
|
|
|
"crypto/rsa"
|
|
|
|
)
|
|
|
|
|
|
|
|
type mockUser struct {
|
|
|
|
email string
|
|
|
|
regres *Resource
|
|
|
|
privatekey *rsa.PrivateKey
|
|
|
|
}
|
|
|
|
|
|
|
|
func (u mockUser) GetEmail() string { return u.email }
|
|
|
|
func (u mockUser) GetRegistration() *Resource { return u.regres }
|
|
|
|
func (u mockUser) GetPrivateKey() crypto.PrivateKey { return u.privatekey }
|