org.deegree.services.controller
Interface CredentialsProvider

All Known Implementing Classes:
DeegreeAuthentication, HttpBasicAuthentication, SOAPAuthentication

public interface CredentialsProvider

Provides the methods used for the authorization procedure.

Version:
$Revision: 23215 $, $Date: 2010-03-24 11:57:42 +0100 (Wed, 24 Mar 2010) $
Author:
Steffen Thomas, last edited by: $Author: sthomas $

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.
 

Method Detail

doKVP

Credentials doKVP(Map<String,String> normalizedKVPParams,
                  javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse response)
                  throws SecurityException
Extracts the Credentials from a KVP-request.

Parameters:
normalizedKVPParams -
req -
response -
Returns:
the credentials or null if not credentials are given
Throws:
SecurityException

doXML

Credentials doXML(XMLStreamReader reader,
                  javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse response)
                  throws SecurityException
Extracts the Credentials from an XML-request.

Parameters:
reader -
req -
response -
Returns:
the credentials or null if not credentials are given
Throws:
SecurityException

doSOAP

Credentials doSOAP(org.apache.axiom.soap.SOAPEnvelope soapDoc,
                   javax.servlet.http.HttpServletRequest req)
                   throws SecurityException
Extracts the Credentials from a SOAP-request.

Parameters:
soapDoc -
req -
Returns:
the credentials or null if not credentials are given
Throws:
SecurityException

handleException

void handleException(javax.servlet.http.HttpServletResponse response,
                     SecurityException e)
                     throws IOException
Handles a SecurityException and generates a suitable HTTP response.

Parameters:
response -
e -
Throws:
IOException


Copyright © 2011. All Rights Reserved.