001/* 002 * Licensed under the Apache License, Version 2.0 (the "License"); 003 * you may not use this file except in compliance with the License. 004 * You may obtain a copy of the License at 005 * 006 * http://www.apache.org/licenses/LICENSE-2.0 007 * 008 * Unless required by applicable law or agreed to in writing, software 009 * distributed under the License is distributed on an "AS IS" BASIS, 010 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 011 * See the License for the specific language governing permissions and 012 * limitations under the License. 013 */ 014package org.gbif.ws.security; 015 016import java.util.List; 017 018import org.springframework.boot.context.properties.ConfigurationProperties; 019import org.springframework.stereotype.Component; 020 021@Component 022@ConfigurationProperties(prefix = "appkeys") 023public class AppkeysConfigurationProperties { 024 025 private String file; 026 027 private List<String> whitelist; 028 029 public String getFile() { 030 return file; 031 } 032 033 public void setFile(String file) { 034 this.file = file; 035 } 036 037 public List<String> getWhitelist() { 038 return whitelist; 039 } 040 041 public void setWhitelist(List<String> whitelist) { 042 this.whitelist = whitelist; 043 } 044}