Documentation
¶
Index ¶
- func GenerateSNAPAsymmetricSignature(clientSecret string, timestamp time.Time, privateKey *rsa.PrivateKey) (string, error)
- func GenerateSNAPSymmetricSignature(httpMethod, endpointUrl, accessToken, clientSecret string, timestamp time.Time, ...) (string, error)
- func ParsePrivateKey(private []byte) (*rsa.PrivateKey, error)
- func ParsePublicKey(pub []byte) (*rsa.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSNAPAsymmetricSignature ¶
func GenerateSNAPAsymmetricSignature(clientSecret string, timestamp time.Time, privateKey *rsa.PrivateKey) (string, error)
GenerateSNAPAsymmetricSignature generates a signature for the given client secret and timestamp using the private key
func ParsePrivateKey ¶ added in v0.9.4
func ParsePrivateKey(private []byte) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.