From 1397800be09832a81caf53efdbf71265e1455988 Mon Sep 17 00:00:00 2001 From: Ondrej Rafaj Date: Sat, 26 May 2018 23:00:10 +0100 Subject: [PATCH] 15 minute expiration --- Sources/S3Signer/Expiration.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/S3Signer/Expiration.swift b/Sources/S3Signer/Expiration.swift index a232351..5df9628 100755 --- a/Sources/S3Signer/Expiration.swift +++ b/Sources/S3Signer/Expiration.swift @@ -6,6 +6,9 @@ public enum Expiration { public typealias Seconds = Int + /// 15 minutes + case fifteenMinutes + /// 30 minutes case thirtyMinutes @@ -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: