Package org.trellisldp.dropwizard.config
Class BasicAuthConfiguration
- java.lang.Object
-
- org.trellisldp.dropwizard.config.BasicAuthConfiguration
-
public class BasicAuthConfiguration extends Object
Configuration for Basic AuthN.
-
-
Constructor Summary
Constructors Constructor Description BasicAuthConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getEnabled()
Get whether basic authentication has been enabled.String
getUsersFile()
Get the username file.void
setEnabled(boolean enabled)
Enable or disable basic authentication.void
setUsersFile(String usersFile)
Set the username file.
-
-
-
Method Detail
-
getEnabled
public boolean getEnabled()
Get whether basic authentication has been enabled.- Returns:
- true if basic auth is enabled; false otherwise
-
setEnabled
public void setEnabled(boolean enabled)
Enable or disable basic authentication.- Parameters:
enabled
- true if basic auth is enabled; false otherwise
-
getUsersFile
public String getUsersFile()
Get the username file.- Returns:
- the username file
-
setUsersFile
public void setUsersFile(String usersFile)
Set the username file.- Parameters:
usersFile
- the username file
-
-