|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.services.authentication.HttpBasicAuthentication
public class HttpBasicAuthentication
HTTP Basic Authentication.
It is a basic authentication protocol. The browser generates a dialog with the authentication credentials username and password. After typing in the needed information there is a second request needed to send the credentials back to the server. The basic authentication just encodes the username and password with a simple algorithm that is not intended to secure the credentials. In fact this encryption exists to provide multilanguage capability.
Constructor Summary | |
---|---|
HttpBasicAuthentication()
|
Method Summary | |
---|---|
Credentials |
doKVP(Map<String,String> normalizedKVPParams,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response)
Extracts the Credentials from a KVP-request. |
Credentials |
doSOAP(org.apache.axiom.soap.SOAPEnvelope soapDoc,
javax.servlet.http.HttpServletRequest req)
Extracts the Credentials from a SOAP-request. |
Credentials |
doXML(XMLStreamReader reader,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response)
Extracts the Credentials from an XML-request. |
void |
handleException(javax.servlet.http.HttpServletResponse response,
SecurityException e)
Handles a SecurityException and generates a suitable HTTP response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpBasicAuthentication()
Method Detail |
---|
public Credentials doKVP(Map<String,String> normalizedKVPParams, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse response) throws SecurityException
CredentialsProvider
Credentials
from a KVP-request.
doKVP
in interface CredentialsProvider
null
if not credentials are given
SecurityException
public Credentials doXML(XMLStreamReader reader, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse response) throws SecurityException
CredentialsProvider
Credentials
from an XML-request.
doXML
in interface CredentialsProvider
null
if not credentials are given
SecurityException
public Credentials doSOAP(org.apache.axiom.soap.SOAPEnvelope soapDoc, javax.servlet.http.HttpServletRequest req) throws SecurityException
CredentialsProvider
Credentials
from a SOAP-request.
doSOAP
in interface CredentialsProvider
null
if not credentials are given
SecurityException
public void handleException(javax.servlet.http.HttpServletResponse response, SecurityException e) throws IOException
CredentialsProvider
SecurityException
and generates a suitable HTTP response.
handleException
in interface CredentialsProvider
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |