java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.internal.security.BasicSecurityKey
cn.warpin.thirdPart.huawei.obs.obs.services.internal.security.LimitedTimeSecurityKey
所有已实现的接口:
ISecurityKey

public class LimitedTimeSecurityKey extends BasicSecurityKey
  • 字段详细资料

    • expiryDate

      protected Date expiryDate
    • EXPIRY_SECONDS

      private static final long EXPIRY_SECONDS
      另请参阅:
    • WILL_SOON_EXPIRE_SECONDS

      private static final long WILL_SOON_EXPIRE_SECONDS
      另请参阅:
  • 构造器详细资料

    • LimitedTimeSecurityKey

      public LimitedTimeSecurityKey(String accessKey, String secretKey, String securityToken)
    • LimitedTimeSecurityKey

      public LimitedTimeSecurityKey(String accessKey, String secretKey, String securityToken, Date expiryDate)
  • 方法详细资料

    • aboutToExpire

      public boolean aboutToExpire()
      about 2~5 minutes
      返回:
    • willSoonExpire

      public boolean willSoonExpire()
      less than 2 minutes
      返回:
    • getUtcTime

      public static Date getUtcTime()
    • getExpiryDate

      public Date getExpiryDate()