Exemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (_stsClient != null)
            {
                if (_ownStsClient)
                {
                    _stsClient.Dispose();
                }
                _stsClient = null;
            }
        }
Exemplo n.º 2
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (_stsClient != null)
            {
                if (_ownStsClient)
                {
                    _stsClient.Dispose();
                }
                _stsClient = null;
            }
        }
Exemplo n.º 3
0
 // Constructs refreshing credentials from STS client
 private RefreshingSessionAWSCredentials(AmazonSecurityTokenService stsClient, bool ownStsClient)
 {
     _stsClient = stsClient;
     _ownStsClient = ownStsClient;
     this.PreemptExpiryTime = _preemptExpiryTime;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructs a RefreshingSessionAWSCredentials object.
 /// The passed-in AmazonSecurityTokenService is used to refresh credentials.
 /// </summary>
 /// <param name="stsClient">STS client to use</param>
 public RefreshingSessionAWSCredentials(AmazonSecurityTokenService stsClient)
     : this(stsClient, false)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Constructs a RefreshingSessionAWSCredentials object.
 /// The passed-in AmazonSecurityTokenService is used to refresh credentials.
 /// </summary>
 /// <param name="stsClient">STS client to use</param>
 public RefreshingSessionAWSCredentials(AmazonSecurityTokenService stsClient)
     : this(stsClient, false)
 {
 }
Exemplo n.º 6
0
 // Constructs refreshing credentials from STS client
 private RefreshingSessionAWSCredentials(AmazonSecurityTokenService stsClient, bool ownStsClient)
 {
     _stsClient    = stsClient;
     _ownStsClient = ownStsClient;
 }
Exemplo n.º 7
0
 // Constructs refreshing credentials from STS client
 private RefreshingSessionAWSCredentials(AmazonSecurityTokenService stsClient, bool ownStsClient)
 {
     _stsClient = stsClient;
     _ownStsClient = ownStsClient;
 }
Exemplo n.º 8
0
 // Constructs refreshing credentials from STS client
 private RefreshingSessionAWSCredentials(AmazonSecurityTokenService stsClient, bool ownStsClient)
 {
     _stsClient             = stsClient;
     _ownStsClient          = ownStsClient;
     this.PreemptExpiryTime = _preemptExpiryTime;
 }