auth

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaCloudCredentials

type AlibabaCloudCredentials interface {
	GetAccessKeyId() string
	GetAccessKeySecret() string
}

type RsaKeyPairCredentials

type RsaKeyPairCredentials struct {
	// contains filtered or unexported fields
}

func NewRsaKeyPairCredentials

func NewRsaKeyPairCredentials(keyId, privateKeySecret string) *RsaKeyPairCredentials

func (*RsaKeyPairCredentials) GetAccessKeyId

func (rsa *RsaKeyPairCredentials) GetAccessKeyId() string

func (*RsaKeyPairCredentials) GetAccessKeySecret

func (rsa *RsaKeyPairCredentials) GetAccessKeySecret() string

type SHA256withRSASigner

type SHA256withRSASigner struct {
}

func NewSHA256withRSASigner

func NewSHA256withRSASigner() *SHA256withRSASigner

func (*SHA256withRSASigner) GetSignerName

func (s *SHA256withRSASigner) GetSignerName() *string

func (*SHA256withRSASigner) GetSignerType

func (s *SHA256withRSASigner) GetSignerType() *string

func (*SHA256withRSASigner) GetSignerVersion

func (s *SHA256withRSASigner) GetSignerVersion() *string

func (*SHA256withRSASigner) SignString

func (s *SHA256withRSASigner) SignString(stringToSign, accessKeySecret string) (*string, error)

type Signer

type Signer interface {
	SignString(stringToSign, accessKeySecret string) (*string, error)
	GetSignerName() *string
	GetSignerVersion() *string
	GetSignerType() *string
}

func GetSigner

func GetSigner(credentials AlibabaCloudCredentials) (Signer, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL