Documentation ¶
Index ¶
- type CertificateUtility
- func (_m *CertificateUtility) AddCertificateHeaderAndFooter(crtRaw []byte) []byte
- func (_m *CertificateUtility) CheckCSRValues(csr *x509.CertificateRequest, subject certificates.CSRSubject) apperrors.AppError
- func (_m *CertificateUtility) LoadCSR(encodedData []byte) (*x509.CertificateRequest, apperrors.AppError)
- func (_m *CertificateUtility) LoadCert(encodedData []byte) (*x509.Certificate, apperrors.AppError)
- func (_m *CertificateUtility) LoadKey(encodedData []byte) (*rsa.PrivateKey, apperrors.AppError)
- func (_m *CertificateUtility) SignCSR(caCrt *x509.Certificate, csr *x509.CertificateRequest, caKey *rsa.PrivateKey) ([]byte, apperrors.AppError)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateUtility ¶
CertificateUtility is an autogenerated mock type for the CertificateUtility type
func (*CertificateUtility) AddCertificateHeaderAndFooter ¶
func (_m *CertificateUtility) AddCertificateHeaderAndFooter(crtRaw []byte) []byte
AddCertificateHeaderAndFooter provides a mock function with given fields: crtRaw
func (*CertificateUtility) CheckCSRValues ¶
func (_m *CertificateUtility) CheckCSRValues(csr *x509.CertificateRequest, subject certificates.CSRSubject) apperrors.AppError
CheckCSRValues provides a mock function with given fields: csr, subject
func (*CertificateUtility) LoadCSR ¶
func (_m *CertificateUtility) LoadCSR(encodedData []byte) (*x509.CertificateRequest, apperrors.AppError)
LoadCSR provides a mock function with given fields: encodedData
func (*CertificateUtility) LoadCert ¶
func (_m *CertificateUtility) LoadCert(encodedData []byte) (*x509.Certificate, apperrors.AppError)
LoadCert provides a mock function with given fields: encodedData
func (*CertificateUtility) LoadKey ¶
func (_m *CertificateUtility) LoadKey(encodedData []byte) (*rsa.PrivateKey, apperrors.AppError)
LoadKey provides a mock function with given fields: encodedData
func (*CertificateUtility) SignCSR ¶
func (_m *CertificateUtility) SignCSR(caCrt *x509.Certificate, csr *x509.CertificateRequest, caKey *rsa.PrivateKey) ([]byte, apperrors.AppError)
SignCSR provides a mock function with given fields: caCrt, csr, caKey
type Service ¶
Service is an autogenerated mock type for the Service type
func (*Service) SignCSR ¶
func (_m *Service) SignCSR(encodedCSR []byte, subject certificates.CSRSubject) (certificates.EncodedCertificateChain, apperrors.AppError)
SignCSR provides a mock function with given fields: encodedCSR, subject