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 booleangetEnabled()Get whether basic authentication has been enabled.StringgetJwks()Get the JWKS location.StringgetKey()Get the base64-encoded JWT key.List<String>getKeyIds()Get the key ids.StringgetKeyStore()Get the keystore location.StringgetKeyStorePassword()Get the keystore password.voidsetEnabled(boolean enabled)Enable or disable basic authentication.voidsetJwks(String jwks)Set the jwks location.voidsetKey(String key)Set the base64-encoded JWT key.voidsetKeyIds(List<String> ids)Set the key ids.voidsetKeyStore(String keyStore)Set the keystore location.voidsetKeyStorePassword(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
-
-