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.BasicAuthConfigurationgetBasic()Get the basic auth configuration.JwtAuthConfigurationgetJwt()Get the jwt auth configuration.StringgetRealm()Get the security realm.StringgetScope()Get the security scope.WebacConfigurationgetWebac()Get the webac auth configuration.voidsetAdminUsers(List<String> adminUsers)Set the admin users.voidsetBasic(BasicAuthConfiguration basic)Set the basic auth configuration.voidsetJwt(JwtAuthConfiguration jwt)Set the jwt auth configuration.voidsetRealm(String realm)Set the security realm.voidsetScope(String scope)Set the security scope.voidsetWebac(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
-
-