View Javadoc
1   /**
2    * Copyright 2004-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }