Package org.trellisldp.dropwizard.config
Class AuthConfiguration
- java.lang.Object
-
- org.trellisldp.dropwizard.config.AuthConfiguration
-
public class AuthConfiguration extends Object
Configuration for authN/authZ.
-
-
Constructor Summary
Constructors Constructor Description AuthConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAdminUsers()
Get the admin users.BasicAuthConfiguration
getBasic()
Get the basic auth configuration.JwtAuthConfiguration
getJwt()
Get the jwt auth configuration.String
getRealm()
Get the security realm.String
getScope()
Get the security scope.WebacConfiguration
getWebac()
Get the webac auth configuration.void
setAdminUsers(List<String> adminUsers)
Set the admin users.void
setBasic(BasicAuthConfiguration basic)
Set the basic auth configuration.void
setJwt(JwtAuthConfiguration jwt)
Set the jwt auth configuration.void
setRealm(String realm)
Set the security realm.void
setScope(String scope)
Set the security scope.void
setWebac(WebacConfiguration webac)
Set the webac auth configuration.
-
-
-
Method Detail
-
setAdminUsers
public void setAdminUsers(List<String> adminUsers)
Set the admin users.- Parameters:
adminUsers
- the admin users
-
setBasic
public void setBasic(BasicAuthConfiguration basic)
Set the basic auth configuration.- Parameters:
basic
- the basic auth config
-
getBasic
public BasicAuthConfiguration getBasic()
Get the basic auth configuration.- Returns:
- the basic auth config
-
setJwt
public void setJwt(JwtAuthConfiguration jwt)
Set the jwt auth configuration.- Parameters:
jwt
- the jwt auth config
-
getJwt
public JwtAuthConfiguration getJwt()
Get the jwt auth configuration.- Returns:
- the jwt auth config
-
setWebac
public void setWebac(WebacConfiguration webac)
Set the webac auth configuration.- Parameters:
webac
- the webac auth config
-
getWebac
public WebacConfiguration getWebac()
Get the webac auth configuration.- Returns:
- the webac auth config
-
getRealm
public String getRealm()
Get the security realm.- Returns:
- the realm; by default, this is 'trellis'
-
setRealm
public void setRealm(String realm)
Set the security realm.- Parameters:
realm
- the security realm
-
setScope
public void setScope(String scope)
Set the security scope.- Parameters:
scope
- the security scope
-
getScope
public String getScope()
Get the security scope.- Returns:
- the scope
-
-