org.deegree.services.authentication
Class DeegreeAuthentication

java.lang.Object
  extended by org.deegree.services.authentication.DeegreeAuthentication
All Implemented Interfaces:
CredentialsProvider

public class DeegreeAuthentication
extends java.lang.Object
implements CredentialsProvider

deegree Authentication.

This is a deegree specific authentication that uses the possibilities of KVP to append the username and password as well as the sessionID in the URL.

Version:
$Revision: $, $Date: $
Author:
Steffen Thomas, last edited by: $Author: thomas $

Constructor Summary
DeegreeAuthentication()
           
 
Method Summary
 Credentials doKVP(java.util.Map<java.lang.String,java.lang.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(javax.xml.stream.XMLStreamReader xmlStream, 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

DeegreeAuthentication

public DeegreeAuthentication()
Method Detail

doKVP

public Credentials doKVP(java.util.Map<java.lang.String,java.lang.String> normalizedKVPParams,
                         javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse response)
                  throws SecurityException,
                         java.security.AccessControlException
Description copied from interface: CredentialsProvider
Extracts the Credentials from a KVP-request.

Specified by:
doKVP in interface CredentialsProvider
Returns:
the credentials or null if not credentials are given
Throws:
SecurityException
java.security.AccessControlException

doXML

public Credentials doXML(javax.xml.stream.XMLStreamReader xmlStream,
                         javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse response)
                  throws SecurityException
Description copied from interface: CredentialsProvider
Extracts the Credentials from an XML-request.

Specified by:
doXML in interface CredentialsProvider
Returns:
the credentials or null if not credentials are given
Throws:
SecurityException

doSOAP

public Credentials doSOAP(org.apache.axiom.soap.SOAPEnvelope soapDoc,
                          javax.servlet.http.HttpServletRequest req)
Description copied from interface: CredentialsProvider
Extracts the Credentials from a SOAP-request.

Specified by:
doSOAP in interface CredentialsProvider
Returns:
the credentials or null if not credentials are given

handleException

public void handleException(javax.servlet.http.HttpServletResponse response,
                            SecurityException e)
                     throws java.io.IOException
Description copied from interface: CredentialsProvider
Handles a SecurityException and generates a suitable HTTP response.

Specified by:
handleException in interface CredentialsProvider
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.