public class RedirectResponseCreator extends ResponseCreatorImpl implements ResponseCreator
systemCrypto
Constructor and Description |
---|
RedirectResponseCreator(SystemCrypto systemCrypto,
Map<String,EntityInformation> serviceProviders,
Set<SamlPresignPlugin> presignPlugins,
List<String> spMetadata,
Set<SamlProtocol.Binding> supportedBindings) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getSamlpResponse(String relayState,
org.opensaml.saml.saml2.core.AuthnRequest authnRequest,
org.opensaml.saml.saml2.core.Response samlResponse,
javax.ws.rs.core.NewCookie cookie,
String responseTemplate)
Returns the JAXRS Response appropriate for the given arguments.
|
protected URI |
signSamlGetResponse(org.opensaml.saml.saml2.core.Response samlResponse,
org.opensaml.saml.saml2.core.AuthnRequest authnRequest,
String relayState) |
getAssertionConsumerServiceURL, getServiceProviders, getSimpleSign, getSystemCrypto, processPresignPlugins
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAssertionConsumerServiceBinding, getAssertionConsumerServiceURL
public RedirectResponseCreator(SystemCrypto systemCrypto, Map<String,EntityInformation> serviceProviders, Set<SamlPresignPlugin> presignPlugins, List<String> spMetadata, Set<SamlProtocol.Binding> supportedBindings)
public javax.ws.rs.core.Response getSamlpResponse(String relayState, org.opensaml.saml.saml2.core.AuthnRequest authnRequest, org.opensaml.saml.saml2.core.Response samlResponse, javax.ws.rs.core.NewCookie cookie, String responseTemplate) throws IOException, SimpleSign.SignatureException, org.apache.wss4j.common.ext.WSSecurityException
ResponseCreator
getSamlpResponse
in interface ResponseCreator
relayState
- - encoded relay stateauthnRequest
- - unencoded authnRequestsamlResponse
- - initialized SAML 2 Response objectcookie
- - cookie associated with the loginresponseTemplate
- - response template to be used when generating the responseIOException
SimpleSign.SignatureException
org.apache.wss4j.common.ext.WSSecurityException
protected URI signSamlGetResponse(org.opensaml.saml.saml2.core.Response samlResponse, org.opensaml.saml.saml2.core.AuthnRequest authnRequest, String relayState) throws org.apache.wss4j.common.ext.WSSecurityException, SimpleSign.SignatureException, IOException
org.apache.wss4j.common.ext.WSSecurityException
SimpleSign.SignatureException
IOException
This work is licensed under a Creative Commons Attribution 4.0 International License.