Package io.hawt.web.auth
Class AuthenticationConfiguration
java.lang.Object
io.hawt.web.auth.AuthenticationConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringAuthenticationContainerDiscovery classes divided by comma, which are used to discover container environments.static final StringEnable or disable Hawtio's authentication.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringEnable or disable Keycloak integration.static final Stringstatic final StringWhether to return 401 on No Credentials authentication error.static final StringJAAS realm used to authenticate users.static final StringJAAS class name that would contain the role principal.static final StringAuthorized user roles.static final Stringstatic final String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationConfigurationgetConfiguration(jakarta.servlet.ServletContext servletContext) getRealm()getRoles()booleanbooleanbooleanvoidsetConfiguration(Configuration configuration) voidsetRolePrincipalClasses(String rolePrincipalClasses) toString()
-
Field Details
-
LOGIN_URL
- See Also:
-
UNSECURED_PATHS
-
AUTHENTICATION_ENABLED
Enable or disable Hawtio's authentication. Value should be boolean.- See Also:
-
REALM
JAAS realm used to authenticate users.- See Also:
-
ROLES
Authorized user roles. Empty string disables authorization.- See Also:
-
ROLE_PRINCIPAL_CLASSES
JAAS class name that would contain the role principal. Empty string disables authorization.- See Also:
-
NO_CREDENTIALS_401
Whether to return 401 on No Credentials authentication error. Value should be boolean.- See Also:
-
AUTHENTICATION_CONTAINER_DISCOVERY_CLASSES
AuthenticationContainerDiscovery classes divided by comma, which are used to discover container environments.- See Also:
-
KEYCLOAK_ENABLED
Enable or disable Keycloak integration. Value should be boolean.- See Also:
-
HAWTIO_AUTHENTICATION_ENABLED
- See Also:
-
HAWTIO_REALM
- See Also:
-
HAWTIO_ROLES
- See Also:
-
HAWTIO_ROLE_PRINCIPAL_CLASSES
- See Also:
-
HAWTIO_NO_CREDENTIALS_401
- See Also:
-
HAWTIO_AUTH_CONTAINER_DISCOVERY_CLASSES
- See Also:
-
HAWTIO_KEYCLOAK_ENABLED
- See Also:
-
AUTHENTICATION_CONFIGURATION
- See Also:
-
DEFAULT_REALM
- See Also:
-
DEFAULT_KARAF_ROLE_PRINCIPAL_CLASSES
- See Also:
-
TOMCAT_AUTH_CONTAINER_DISCOVERY
- See Also:
-
-
Constructor Details
-
AuthenticationConfiguration
public AuthenticationConfiguration(jakarta.servlet.ServletContext servletContext)
-
-
Method Details
-
getConfiguration
public static AuthenticationConfiguration getConfiguration(jakarta.servlet.ServletContext servletContext) -
isEnabled
public boolean isEnabled() -
isNoCredentials401
public boolean isNoCredentials401() -
getRealm
-
getRoles
-
getRolePrincipalClasses
-
setRolePrincipalClasses
-
getConfiguration
-
setConfiguration
-
isKeycloakEnabled
public boolean isKeycloakEnabled() -
toString
-