1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.aws;
17
18 import static org.kuali.common.util.base.Precondition.checkNotBlank;
19
20 import com.amazonaws.auth.AWSCredentials;
21
22 public enum EncryptedAwsCredentials implements AWSCredentials {
23
24 FOUNDATION("U2FsdGVkX19A2e6dN/ipVfb/9n0DROCPIrLK6H8PvvPmt0h6cBqccGaJW0NSoX3S", "U2FsdGVkX19Y9SZ5GAU82/X5Z0xZdeQf7DFuVDW07R9lfyHK4VaOj5R7pviRBKmIyn7jrVT2lv8Edeu7098k1A=="),
25 STUDENT("1qX8qo6+OPWttFNuvrRN5bTUoxncnTeQr87hhE3UWUs=", "NERgtnAql47LomO7wa06+rU2AI3pbYSpOYZZDVdAXJP7vWtzki6jTB4Vys8pzmM4h/qAXXbgmqs="),
26 RICE("gD0RPJ6Q4qnHVqvcy05gPTzgQyCfPrdEz9aivyh0tk8=", "n6ZFYgj1tbVkhPvvTD/QltvFicvag65OJSPdT1eOW3sKu4nBbfLHunyGRK1pFFJafuePnvSOUAA="),
27 OLE("DsNWIZtKF7XRlgoM7D6H3ywghJw5y+yaz9zgEPsH4IY=", "regjgo+ZtWY187I0TFNFSNO0DsjU7qDzCWLcwIEWwsr2zijUW5imm4WxPSfB+c7lsep/Yf64cH4=");
28
29 private final String accessKey;
30 private final String secretKey;
31
32 private EncryptedAwsCredentials(String accessKey, String secretKey) {
33 this.accessKey = checkNotBlank(accessKey, "accessKey");
34 this.secretKey = checkNotBlank(secretKey, "secretKey");
35 }
36
37 @Override
38 public String getAWSAccessKeyId() {
39 return accessKey;
40 }
41
42 @Override
43 public String getAWSSecretKey() {
44 return secretKey;
45 }
46
47 }