mirror of
https://github.com/go-acme/lego.git
synced 2024-12-03 19:16:42 +02:00
219222fdda
* fix: challenge are not required for revoke.
34 lines
781 B
Go
34 lines
781 B
Go
package cmd // import "github.com/xenolf/lego/cmd"
|
|
|
|
import (
|
|
"crypto"
|
|
|
|
"github.com/xenolf/lego/registration"
|
|
)
|
|
|
|
// Account represents a users local saved credentials
|
|
type Account struct {
|
|
Email string `json:"email"`
|
|
Registration *registration.Resource `json:"registration"`
|
|
key crypto.PrivateKey
|
|
}
|
|
|
|
/** Implementation of the registration.User interface **/
|
|
|
|
// GetEmail returns the email address for the account
|
|
func (a *Account) GetEmail() string {
|
|
return a.Email
|
|
}
|
|
|
|
// GetPrivateKey returns the private RSA account key.
|
|
func (a *Account) GetPrivateKey() crypto.PrivateKey {
|
|
return a.key
|
|
}
|
|
|
|
// GetRegistration returns the server registration
|
|
func (a *Account) GetRegistration() *registration.Resource {
|
|
return a.Registration
|
|
}
|
|
|
|
/** End **/
|