rsa_key_pair_credential.go 385 B

123456789101112131415
  1. package credentials
  2. type RsaKeyPairCredential struct {
  3. PrivateKey string
  4. PublicKeyId string
  5. SessionExpiration int
  6. }
  7. func NewRsaKeyPairCredential(privateKey, publicKeyId string, sessionExpiration int) *RsaKeyPairCredential {
  8. return &RsaKeyPairCredential{
  9. PrivateKey: privateKey,
  10. PublicKeyId: publicKeyId,
  11. SessionExpiration: sessionExpiration,
  12. }
  13. }