edu.internet2.middleware.shibboleth.idp.profile
Class SAMLMetadataProfileHandler

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.profile.provider.AbstractRequestURIMappedProfileHandler
      extended by edu.internet2.middleware.shibboleth.idp.profile.SAMLMetadataProfileHandler
All Implemented Interfaces:
ProfileHandler

public class SAMLMetadataProfileHandler
extends AbstractRequestURIMappedProfileHandler

A simple profile handler that serves up the IdP's metadata. Eventually this handler should auto generate the metadata but, for now, it just provides information from a static file.


Field Summary
private  org.slf4j.Logger log
          Class logger.
private  FilesystemMetadataProvider metadataProvider
          Metadata provider.
 
Constructor Summary
SAMLMetadataProfileHandler(String metadataFile, ParserPool pool)
          Constructor.
 
Method Summary
 void processRequest(InTransport in, OutTransport out)
          
private  void writeNode(Node node, OutputStream output, Charset outputEncoding)
          Writes out the DOM node to a given output stream using a given output encoding.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.profile.provider.AbstractRequestURIMappedProfileHandler
getRequestPaths, setRequestPaths
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final org.slf4j.Logger log
Class logger.


metadataProvider

private FilesystemMetadataProvider metadataProvider
Metadata provider.

Constructor Detail

SAMLMetadataProfileHandler

public SAMLMetadataProfileHandler(String metadataFile,
                                  ParserPool pool)
Constructor.

Parameters:
metadataFile - the IdPs metadata file
pool - pool of XML parsers used to parse the metadata
Method Detail

processRequest

public void processRequest(InTransport in,
                           OutTransport out)
                    throws ProfileException

Throws:
ProfileException

writeNode

private void writeNode(Node node,
                       OutputStream output,
                       Charset outputEncoding)
Writes out the DOM node to a given output stream using a given output encoding.

Parameters:
node - node to write out
output - output stream to which the node is written
outputEncoding - character encoding used by the serializer


Copyright © 1999-2013. All Rights Reserved.