|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.securityfilter.config.SecurityConfig
SecurityConfig gathers information from the security-config.xml file to be used by the filter.
| Constructor Summary | |
SecurityConfig(boolean validating)
Constructor that takes the validating flag and debug level to be used while parsing. |
|
| Method Summary | |
void |
addRealm(Object realm)
Adds a realm to use for authentication. |
void |
addSecurityConstraint(SecurityConstraint constraint)
Adds a SecurityConstraint. |
String |
getAuthMethod()
Get the authentication method being used to challenge the user. |
String |
getDefaultPage()
Return the default page URL. |
String |
getErrorPage()
Return the error page URL. |
String |
getLoginPage()
Return the login page URL. |
SecurityRealmInterface |
getRealm()
Return the realm to use for authentication. |
String |
getRealmName()
Get the authentication realm name. |
List |
getSecurityConstraints()
Return the configured SecurityConstraints. |
void |
loadConfig(URL configURL)
Loads configuration from the specifued configURL. |
protected void |
registerLocalDTDs(org.apache.commons.digester.Digester digester)
Register local copies of the SecurityFilter DTD files. |
void |
setAuthMethod(String authMethod)
Set the authentication method being used to challenge the user. |
void |
setDefaultPage(String defaultPage)
Set the default page URL. |
void |
setErrorPage(String errorPage)
Set the error page URL. |
void |
setLoginPage(String loginPage)
Set the login page URL. |
void |
setRealmName(String realmName)
Set the authentication realm name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SecurityConfig(boolean validating)
validating - validate the input file, true = validate, false = don't validate| Method Detail |
public String getLoginPage()
public void setLoginPage(String loginPage)
loginPage - The login page url (relative to site root)public String getErrorPage()
public void setErrorPage(String errorPage)
errorPage - The login page URL (relative to site root)public String getDefaultPage()
public void setDefaultPage(String defaultPage)
defaultPage - The default page URL (relative to site root)public String getAuthMethod()
public void setAuthMethod(String authMethod)
authMethod - The authentication method to be used by the filterpublic String getRealmName()
public void setRealmName(String realmName)
realmName - the realm name to be used for BASIC authenticationpublic SecurityRealmInterface getRealm()
public void addRealm(Object realm)
throws NoSuchMethodException,
IllegalAccessException,
InvocationTargetException
realm - The realm to use, or nest in deeper realm
NoSuchMethodException
IllegalAccessException
InvocationTargetExceptionpublic List getSecurityConstraints()
public void addSecurityConstraint(SecurityConstraint constraint)
constraint - The SecurityConstraint to add
public void loadConfig(URL configURL)
throws IOException,
SAXException
configURL - The url to load.
IOException - if an input/output error occurs
SAXException - if the file has invalid xml syntaxprotected void registerLocalDTDs(org.apache.commons.digester.Digester digester)
digester -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||