Documentation ¶
Index ¶
Constants ¶
View Source
const ( AcceptHeader = "Accept" // MediaTypePEM defines the media type for PEM formatted data. MediaTypePEM = "application/x-pem-file" )
View Source
const ( CONSUMER_TYPE = "Signingserver.gardener.cloud" ID_HOSTNAME = hostpath.ID_HOSTNAME ID_PORT = hostpath.ID_PORT ID_PATHPREFIX = hostpath.ID_PATHPREFIX ID_SCHEME = hostpath.ID_SCHEME ATTR_CLIENT_CERT = "clientCert" ATTR_PRIVATE_KEY = "privateKey" ATTR_CA_CERTS = "caCerts" )
View Source
const ( Algorithm = rsa.Algorithm Name = "rsa-signingservice" )
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 ¶
func NewHandler ¶
func NewHandlerFor ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is a signatures.Signer compatible struct to sign with RSASSA-PKCS1-V1_5. using a signature service.
type SigningServerSigner ¶
func NewSigningClient ¶
func NewSigningClient(serverURL string) (*SigningServerSigner, error)
func (*SigningServerSigner) Sign ¶
func (signer *SigningServerSigner) Sign(cctx credentials.Context, signatureAlgo string, hashAlgo crypto.Hash, digest string, sctx signing.SigningContext) (*signing.Signature, error)
Click to show internal directories.
Click to hide internal directories.