com.networknt.apikey.ApiKey Maven / Gradle / Ivy
package com.networknt.apikey;
import com.networknt.config.ConfigInjection;
public class ApiKey {
String pathPrefix;
String headerName;
String apiKey;
public String getPathPrefix() {
return pathPrefix;
}
public void setPathPrefix(String pathPrefix) {
this.pathPrefix = pathPrefix;
}
public String getHeaderName() {
return headerName;
}
public void setHeaderName(String headerName) {
this.headerName = headerName;
}
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
// if apiKey is encrypted, we need to decrypted it here.
this.apiKey = (String)ConfigInjection.decryptEnvValue(ConfigInjection.getDecryptor(), apiKey);
}
}