Package org.trellisldp.dropwizard.config
Class JwtAuthConfiguration
- java.lang.Object
-
- org.trellisldp.dropwizard.config.JwtAuthConfiguration
-
public class JwtAuthConfiguration extends Object
Configuration for the JWT service.
-
-
Constructor Summary
Constructors Constructor Description JwtAuthConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getEnabled()
Get whether basic authentication has been enabled.String
getJwks()
Get the JWKS location.String
getKey()
Get the base64-encoded JWT key.List<String>
getKeyIds()
Get the key ids.String
getKeyStore()
Get the keystore location.String
getKeyStorePassword()
Get the keystore password.void
setEnabled(boolean enabled)
Enable or disable basic authentication.void
setJwks(String jwks)
Set the jwks location.void
setKey(String key)
Set the base64-encoded JWT key.void
setKeyIds(List<String> ids)
Set the key ids.void
setKeyStore(String keyStore)
Set the keystore location.void
setKeyStorePassword(String keyStorePassword)
Set the keystore password.
-
-
-
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
-
getKey
public String getKey()
Get the base64-encoded JWT key.- Returns:
- the key
-
setKey
public void setKey(String key)
Set the base64-encoded JWT key.- Parameters:
key
- the key
-
setKeyStore
public void setKeyStore(String keyStore)
Set the keystore location.- Parameters:
keyStore
- the keystore location
-
getKeyStore
public String getKeyStore()
Get the keystore location.- Returns:
- the keystore location
-
setKeyStorePassword
public void setKeyStorePassword(String keyStorePassword)
Set the keystore password.- Parameters:
keyStorePassword
- the password
-
getKeyStorePassword
public String getKeyStorePassword()
Get the keystore password.- Returns:
- the keystore password
-
getJwks
public String getJwks()
Get the JWKS location.- Returns:
- the location of a JWKS document
-
setJwks
public void setJwks(String jwks)
Set the jwks location.- Parameters:
jwks
- the location of a JWKS document
-
-