Skip to content

Commit

Permalink
15 minute expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiki270 committed May 26, 2018
1 parent 1e1ab2f commit 1397800
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/S3Signer/Expiration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ public enum Expiration {

public typealias Seconds = Int

/// 15 minutes
case fifteenMinutes

/// 30 minutes
case thirtyMinutes

Expand All @@ -25,6 +28,8 @@ extension Expiration {
/// Expiration Value
var value: Seconds {
switch self {
case .fifteenMinutes:
return 60 * 15
case .thirtyMinutes:
return 60 * 30
case .hour:
Expand Down

0 comments on commit 1397800

Please sign in to comment.