public class PasswordProtection extends AbstractProtection implements org.tangram.protection.SimplePasswordProtection
| Constructor and Description |
|---|
PasswordProtection() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLogin() |
java.lang.String |
getPassword() |
java.lang.String |
handleLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
isContentVisible(javax.servlet.http.HttpServletRequest request) |
boolean |
needsAuthorization(javax.servlet.http.HttpServletRequest request) |
void |
setLogin(java.lang.String login) |
void |
setPassword(java.lang.String password) |
getDescription, getProtectedContents, getProtectionKey, getProtectionPath, setDescription, setProtectedContents, setProtectionKeybyteArraytoString, charArrayToString, postprocessPlainId, stringToByteArray, stringToCharArraycompareTo, equals, getId, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic java.lang.String getLogin()
getLogin in interface org.tangram.protection.SimplePasswordProtectionpublic void setLogin(java.lang.String login)
public java.lang.String getPassword()
getPassword in interface org.tangram.protection.SimplePasswordProtectionpublic void setPassword(java.lang.String password)
public java.lang.String handleLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
handleLogin in interface org.tangram.protection.Protectionpublic boolean isContentVisible(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
isContentVisible in interface org.tangram.protection.Protectionjava.lang.Exceptionpublic boolean needsAuthorization(javax.servlet.http.HttpServletRequest request)
needsAuthorization in interface org.tangram.protection.Protection