|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.main.CmsHttpAuthenticationSettings
public class CmsHttpAuthenticationSettings
Contains the settings to handle HTTP basic authentication.
These settings control whether a browser-based pop-up dialog should be used for authentication, or of the user should be redirected to an OpenCms URI for a form-based authentication.
Since the URI for the form-based authentication is a system wide setting, users are able to specify different authentication forms in a property "login-form" on resources that require authentication.
| Field Summary | |
|---|---|
static String |
AUTHENTICATION_BASIC
The mechanism name for basic HTTP authentication. |
static String |
AUTHENTICATION_FORM
The mechanism name for form based authentication. |
static String |
DEFAULT_AUTHENTICATION_URI
The URI of the default authentication form. |
| Constructor Summary | |
|---|---|
CmsHttpAuthenticationSettings()
Default constructor. |
|
| Method Summary | |
|---|---|
String |
getBrowserBasedAuthenticationMechanism()
Returns the browser based authentication mechanism or null if unused. |
String |
getConfigBrowserBasedAuthentication()
Returns the browser based authentication text for the configuration. |
String |
getFormBasedHttpAuthenticationUri()
Returns the URI of the system wide login form if browser-based HTTP basic authentication is disabled. |
void |
setFormBasedHttpAuthenticationUri(String uri)
Sets the URI of the system wide login form if browser-based HTTP basic authentication is disabled. |
void |
setUseBrowserBasedHttpAuthentication(boolean value)
Sets if browser-based HTTP basic authentication is enabled or disabled. |
void |
setUseBrowserBasedHttpAuthentication(String value)
Sets if browser-based HTTP basic authentication is enabled or disabled. |
boolean |
useBrowserBasedHttpAuthentication()
Tests if browser-based HTTP basic authentication is enabled or disabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String AUTHENTICATION_BASIC
public static final String AUTHENTICATION_FORM
public static final String DEFAULT_AUTHENTICATION_URI
| Constructor Detail |
|---|
public CmsHttpAuthenticationSettings()
| Method Detail |
|---|
public String getBrowserBasedAuthenticationMechanism()
null if unused.
null if unused.public String getConfigBrowserBasedAuthentication()
public String getFormBasedHttpAuthenticationUri()
public void setFormBasedHttpAuthenticationUri(String uri)
uri - the URI of the system wide login form if browser-based HTTP basic authentication is disabled to setpublic void setUseBrowserBasedHttpAuthentication(boolean value)
value - a boolean value to specifiy if browser-based HTTP basic authentication should be enabledpublic void setUseBrowserBasedHttpAuthentication(String value)
value - a string {"true"|"false"} to specify if browser-based HTTP basic authentication should be enabled;
if another string is provided, the flag for browser based basic authentication is disabled and the value is stored as authentication mechanism.public boolean useBrowserBasedHttpAuthentication()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||