Skip to content

Commit

Permalink
Deprecated the RSA Key pair credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian authored and yndu13 committed Jul 31, 2024
1 parent b132928 commit d1d7eef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/auth/credentials/rsa_key_pair_credential.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package credentials

// Deprecated: the RSA key pair is deprecated
type RsaKeyPairCredential struct {
PrivateKey string
PublicKeyId string
SessionExpiration int
}

// Deprecated: the RSA key pair is deprecated
func NewRsaKeyPairCredential(privateKey, publicKeyId string, sessionExpiration int) *RsaKeyPairCredential {
return &RsaKeyPairCredential{
PrivateKey: privateKey,
Expand Down
1 change: 1 addition & 0 deletions sdk/auth/signers/signer_key_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
jmespath "github.com/jmespath/go-jmespath"
)

// Deprecated: RSA key pair is deprecated
type SignerKeyPair struct {
*credentialUpdater
sessionCredential *SessionCredential
Expand Down
1 change: 1 addition & 0 deletions sdk/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client,
return
}

// Deprecated: the RsaKeyPair is deprecated
func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
client = &Client{}
err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
Expand Down

0 comments on commit d1d7eef

Please sign in to comment.