Documentation
¶
Index ¶
Constants ¶
View Source
const ( AcceptHeader = "Accept" AlgorithHeader = "X-SignatatureAlgorithm" // MediaTypePEM defines the media type for PEM formatted data. MediaTypePEM = "application/x-pem-file" )
View Source
const ( Algorithm = rsa.Algorithm Name = "rsa-signingsservice" )
Algorithm defines the type for the RSA PKCS #1 v1.5 signature algorithm.
View Source
const SignaturePEMBlockAlgorithmHeader = "Algorithm"
SignaturePEMBlockAlgorithmHeader defines the header in a signature pem block where the signature algorithm is defined.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
Handler is a signatures.Signer compatible struct to sign with RSASSA-PKCS1-V1_5. using a signature service.
type Key ¶
type Key struct { URL string `json:"url"` Username string `json:"username"` Password string `json:"password"` }
func PrivateKey ¶
type SigningServerSigner ¶
type SigningServerSigner struct { Url string `json:"url"` Username string `json:"username"` Password string `json:"password"` }
func NewSigningClient ¶
func NewSigningClient(url string, username, password string) (*SigningServerSigner, error)
Click to show internal directories.
Click to hide internal directories.