Documentation ¶
Index ¶
- func Create(signer xmlsig.Signer, data interface{}) (*xml_dsig.SignatureType, error)
- func CreateRedirect(signingContext *dsig.SigningContext, query string) ([]byte, error)
- func GetSigner(cert []byte, key *rsa.PrivateKey, signatureAlgorithm string) (xmlsig.Signer, error)
- func GetSigningContext(tlsCert tls.Certificate, signatureAlgorithm string) (*dsig.SigningContext, error)
- func GetSigningContextAndSigner(cert []byte, key *rsa.PrivateKey, signatureAlgorithm string) (*dsig.SigningContext, xmlsig.Signer, error)
- func ParseCertificates(certStrs []string) ([]*x509.Certificate, error)
- func ParseTlsKeyPair(cert []byte, key *rsa.PrivateKey) (tls.Certificate, error)
- func ValidatePost(certs []*x509.Certificate, el *etree.Element) error
- func ValidateRedirect(sigAlg string, elementToSign []byte, signature []byte, pubKey interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRedirect ¶
func CreateRedirect(signingContext *dsig.SigningContext, query string) ([]byte, error)
func GetSigningContext ¶
func GetSigningContext(tlsCert tls.Certificate, signatureAlgorithm string) (*dsig.SigningContext, error)
func GetSigningContextAndSigner ¶
func GetSigningContextAndSigner( cert []byte, key *rsa.PrivateKey, signatureAlgorithm string, ) (*dsig.SigningContext, xmlsig.Signer, error)
func ParseCertificates ¶
func ParseCertificates(certStrs []string) ([]*x509.Certificate, error)
func ParseTlsKeyPair ¶
func ParseTlsKeyPair(cert []byte, key *rsa.PrivateKey) (tls.Certificate, error)
func ValidatePost ¶
func ValidatePost(certs []*x509.Certificate, el *etree.Element) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.