Documentation
¶
Index ¶
- func AuthenticateConsumer(request *http.Request, consumerMrn string) (x509.SignatureAlgorithm, bool, error)
- func GetMrnFromCertificate(cert *x509.Certificate) string
- func VerifySignatureOnMessage(mmtpMessage *mmtp.MmtpMessage, signatureAlgorithm x509.SignatureAlgorithm, ...) error
- type AuthenticationErr
- type CertValErr
- type MrnMismatchErr
- type SigAlgErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateConsumer ¶
func GetMrnFromCertificate ¶
func GetMrnFromCertificate(cert *x509.Certificate) string
func VerifySignatureOnMessage ¶
func VerifySignatureOnMessage(mmtpMessage *mmtp.MmtpMessage, signatureAlgorithm x509.SignatureAlgorithm, request *http.Request) error
Types ¶
type AuthenticationErr ¶
type AuthenticationErr struct {
Msg string
}
func (*AuthenticationErr) Error ¶
func (e *AuthenticationErr) Error() string
type MrnMismatchErr ¶
type MrnMismatchErr struct {
AuthenticationErr
}
type SigAlgErr ¶
type SigAlgErr struct {
AuthenticationErr
}
Click to show internal directories.
Click to hide internal directories.