com.networknt.basicauth.UserAuth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of basic-config Show documentation
Show all versions of basic-config Show documentation
A config module for basic auth handler shared with lambda-native.
package com.networknt.basicauth;
import com.networknt.config.ConfigInjection;
import java.util.List;
public class UserAuth {
String username;
String password;
List paths;
public UserAuth(String username, String password, List paths) {
this.username = username;
this.password = password;
this.paths = paths;
}
public UserAuth() {
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = (String) ConfigInjection.decryptEnvValue(ConfigInjection.getDecryptor(), password);
}
public List getPaths() {
return paths;
}
public void setPaths(List paths) {
this.paths = paths;
}
}