public Credential(String keyId, String secret, String securityToken, int expiredHours) {this.accessKeyId = keyId;this.accessSecret = secret;this.securityToken = securityToken;this.refreshDate = new Date();setExpiredDate(expiredHours);}

public Credential(string keyId, string secret, string securityToken, int expiredHours){AccessKeyId = keyId;AccessSecret = secret;SecurityToken = securityToken;RefreshDate = new DateTime();SetExpiredDate(expiredHours);}
