Documentation
¶
Index ¶
- type SQLStorageAuthority
- func (ssa *SQLStorageAuthority) AddCertificate(certDER []byte, regID int64) (digest string, err error)
- func (ssa *SQLStorageAuthority) AddDeniedCSR(names []string) (err error)
- func (ssa *SQLStorageAuthority) AlreadyDeniedCSR(names []string) (already bool, err error)
- func (ssa *SQLStorageAuthority) DumpTables() error
- func (ssa *SQLStorageAuthority) FinalizeAuthorization(authz core.Authorization) (err error)
- func (ssa *SQLStorageAuthority) GetAuthorization(id string) (authz core.Authorization, err error)
- func (ssa *SQLStorageAuthority) GetCertificate(serial string) (cert []byte, err error)
- func (ssa *SQLStorageAuthority) GetCertificateByShortSerial(shortSerial string) (cert []byte, err error)
- func (ssa *SQLStorageAuthority) GetCertificateStatus(serial string) (status core.CertificateStatus, err error)
- func (ssa *SQLStorageAuthority) GetRegistration(id int64) (reg core.Registration, err error)
- func (ssa *SQLStorageAuthority) GetRegistrationByKey(key jose.JsonWebKey) (reg core.Registration, err error)
- func (ssa *SQLStorageAuthority) InitTables() (err error)
- func (ssa *SQLStorageAuthority) MarkCertificateRevoked(serial string, ocspResponse []byte, reasonCode int) (err error)
- func (ssa *SQLStorageAuthority) NewPendingAuthorization() (id string, err error)
- func (ssa *SQLStorageAuthority) NewRegistration(reg core.Registration) (output core.Registration, err error)
- func (ssa *SQLStorageAuthority) UpdatePendingAuthorization(authz core.Authorization) (err error)
- func (ssa *SQLStorageAuthority) UpdateRegistration(reg core.Registration) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLStorageAuthority ¶
type SQLStorageAuthority struct {
// contains filtered or unexported fields
}
func NewSQLStorageAuthority ¶
func NewSQLStorageAuthority(driver string, name string) (ssa *SQLStorageAuthority, err error)
func (*SQLStorageAuthority) AddCertificate ¶
func (ssa *SQLStorageAuthority) AddCertificate(certDER []byte, regID int64) (digest string, err error)
func (*SQLStorageAuthority) AddDeniedCSR ¶
func (ssa *SQLStorageAuthority) AddDeniedCSR(names []string) (err error)
func (*SQLStorageAuthority) AlreadyDeniedCSR ¶
func (ssa *SQLStorageAuthority) AlreadyDeniedCSR(names []string) (already bool, err error)
func (*SQLStorageAuthority) DumpTables ¶
func (ssa *SQLStorageAuthority) DumpTables() error
func (*SQLStorageAuthority) FinalizeAuthorization ¶
func (ssa *SQLStorageAuthority) FinalizeAuthorization(authz core.Authorization) (err error)
func (*SQLStorageAuthority) GetAuthorization ¶
func (ssa *SQLStorageAuthority) GetAuthorization(id string) (authz core.Authorization, err error)
func (*SQLStorageAuthority) GetCertificate ¶
func (ssa *SQLStorageAuthority) GetCertificate(serial string) (cert []byte, err error)
GetCertificate takes a serial number and returns the corresponding certificate, or error if it does not exist.
func (*SQLStorageAuthority) GetCertificateByShortSerial ¶
func (ssa *SQLStorageAuthority) GetCertificateByShortSerial(shortSerial string) (cert []byte, err error)
GetCertificateByShortSerial takes an id consisting of the first, sequential half of a serial number and returns the first certificate whose full serial number is lexically greater than that id. This allows clients to query on the known sequential half of our serial numbers to enumerate all certificates. TODO: Implement error when there are multiple certificates with the same sequential half.
func (*SQLStorageAuthority) GetCertificateStatus ¶
func (ssa *SQLStorageAuthority) GetCertificateStatus(serial string) (status core.CertificateStatus, err error)
GetCertificateStatus takes a hexadecimal string representing the full 128-bit serial number of a certificate and returns data about that certificate's current validity.
func (*SQLStorageAuthority) GetRegistration ¶
func (ssa *SQLStorageAuthority) GetRegistration(id int64) (reg core.Registration, err error)
func (*SQLStorageAuthority) GetRegistrationByKey ¶
func (ssa *SQLStorageAuthority) GetRegistrationByKey(key jose.JsonWebKey) (reg core.Registration, err error)
func (*SQLStorageAuthority) InitTables ¶
func (ssa *SQLStorageAuthority) InitTables() (err error)
func (*SQLStorageAuthority) MarkCertificateRevoked ¶
func (ssa *SQLStorageAuthority) MarkCertificateRevoked(serial string, ocspResponse []byte, reasonCode int) (err error)
MarkCertificateRevoked stores the fact that a certificate is revoked, along with a timestamp and a reason.
func (*SQLStorageAuthority) NewPendingAuthorization ¶
func (ssa *SQLStorageAuthority) NewPendingAuthorization() (id string, err error)
func (*SQLStorageAuthority) NewRegistration ¶
func (ssa *SQLStorageAuthority) NewRegistration(reg core.Registration) (output core.Registration, err error)
func (*SQLStorageAuthority) UpdatePendingAuthorization ¶
func (ssa *SQLStorageAuthority) UpdatePendingAuthorization(authz core.Authorization) (err error)
func (*SQLStorageAuthority) UpdateRegistration ¶
func (ssa *SQLStorageAuthority) UpdateRegistration(reg core.Registration) (err error)