nl.surfnet.spring.security.opensaml
Class SAMLMessageHandlerImpl

java.lang.Object
  extended by nl.surfnet.spring.security.opensaml.SAMLMessageHandlerImpl
All Implemented Interfaces:
SAMLMessageHandler

public class SAMLMessageHandlerImpl
extends Object
implements SAMLMessageHandler


Constructor Summary
SAMLMessageHandlerImpl(org.opensaml.common.binding.decoding.SAMLMessageDecoder decoder, org.opensaml.ws.security.SecurityPolicyResolver resolver)
           
 
Method Summary
 String extractSAMLMessage(javax.servlet.http.HttpServletRequest request)
           
 org.opensaml.common.binding.SAMLMessageContext extractSAMLMessageContext(javax.servlet.http.HttpServletRequest request)
           
 String getEntityId()
           
 boolean isNeedsSigning()
           
 void sendSAMLMessage(org.opensaml.common.SignableSAMLObject samlMessage, org.opensaml.saml2.metadata.Endpoint endpoint, javax.servlet.http.HttpServletResponse response, String relayState, org.opensaml.xml.security.credential.Credential signingCredential)
           
 void setEntityId(String entityId)
           
 void setNeedsSigning(boolean needsSigning)
           
 void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLMessageHandlerImpl

public SAMLMessageHandlerImpl(org.opensaml.common.binding.decoding.SAMLMessageDecoder decoder,
                              org.opensaml.ws.security.SecurityPolicyResolver resolver)
Method Detail

setVelocityEngine

public void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)

setEntityId

public void setEntityId(String entityId)

extractSAMLMessageContext

public org.opensaml.common.binding.SAMLMessageContext extractSAMLMessageContext(javax.servlet.http.HttpServletRequest request)
                                                                         throws org.opensaml.ws.message.decoder.MessageDecodingException,
                                                                                org.opensaml.xml.security.SecurityException
Specified by:
extractSAMLMessageContext in interface SAMLMessageHandler
Throws:
org.opensaml.ws.message.decoder.MessageDecodingException
org.opensaml.xml.security.SecurityException

sendSAMLMessage

public void sendSAMLMessage(org.opensaml.common.SignableSAMLObject samlMessage,
                            org.opensaml.saml2.metadata.Endpoint endpoint,
                            javax.servlet.http.HttpServletResponse response,
                            String relayState,
                            org.opensaml.xml.security.credential.Credential signingCredential)
                     throws org.opensaml.ws.message.encoder.MessageEncodingException
Specified by:
sendSAMLMessage in interface SAMLMessageHandler
Throws:
org.opensaml.ws.message.encoder.MessageEncodingException

extractSAMLMessage

public String extractSAMLMessage(javax.servlet.http.HttpServletRequest request)
Specified by:
extractSAMLMessage in interface SAMLMessageHandler

setNeedsSigning

public void setNeedsSigning(boolean needsSigning)

isNeedsSigning

public boolean isNeedsSigning()

getEntityId

public String getEntityId()


Copyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.