Class AssertionConsumerService
java.lang.Object
org.codice.ddf.security.idp.client.AssertionConsumerService
-
Constructor Summary
ConstructorsConstructorDescriptionAssertionConsumerService(ddf.security.samlp.impl.SimpleSign simpleSign, IdpMetadata metadata, ddf.security.samlp.impl.SystemCrypto crypto, ddf.security.samlp.impl.RelayStates<String> relayStates) -
Method Summary
Modifier and TypeMethodDescriptionorg.codice.ddf.platform.filter.SecurityFilterjavax.ws.rs.core.ResponsegetSamlResponse(String deflatedSamlResponse, String relayState, String signatureAlgorithm, String signature) The HTTP-Redirect binding should not be used for Single Sign-On responses.javax.ws.rs.core.ResponsepostSamlResponse(String encodedSamlResponse, String relayState) javax.ws.rs.core.ResponseprocessSamlResponse(String authnResponse, String relayState, boolean wasRedirectSigned) javax.ws.rs.core.ResponseprocessSamlResponse(org.opensaml.saml.saml2.core.Response samlResponse, String relayState, boolean wasRedirectSigned) javax.ws.rs.core.ResponseprocessSoapResponse(InputStream body, javax.servlet.http.HttpServletRequest request) javax.ws.rs.core.ResponsevoidsetContextPolicyManager(org.codice.ddf.security.policy.context.ContextPolicyManager contextPolicyManager) voidsetLoginFilter(org.codice.ddf.platform.filter.SecurityFilter loginFilter) voidsetRequest(javax.servlet.http.HttpServletRequest request) voidsetSamlSecurity(org.codice.ddf.security.jaxrs.SamlSecurity samlSecurity) voidsetSessionFactory(ddf.security.http.SessionFactory sessionFactory)
-
Constructor Details
-
AssertionConsumerService
public AssertionConsumerService(ddf.security.samlp.impl.SimpleSign simpleSign, IdpMetadata metadata, ddf.security.samlp.impl.SystemCrypto crypto, ddf.security.samlp.impl.RelayStates<String> relayStates)
-
-
Method Details
-
postSamlResponse
-
processSoapResponse
@POST @Consumes({"text/xml","application/soap+xml"}) public javax.ws.rs.core.Response processSoapResponse(InputStream body, @Context javax.servlet.http.HttpServletRequest request) -
getSamlResponse
@GET public javax.ws.rs.core.Response getSamlResponse(@QueryParam("SAMLResponse") String deflatedSamlResponse, @QueryParam("RelayState") String relayState, @QueryParam("SigAlg") String signatureAlgorithm, @QueryParam("Signature") String signature) The HTTP-Redirect binding should not be used for Single Sign-On responses.SAML Profiles Spec: The identity provider issues a
message to be delivered by the user agent to the service provider. Either the HTTP POST, or HTTP Artifact binding can be used to transfer the message to the service provider through the user agent. The HTTP Redirect binding MUST NOT be used, as the response will typically exceed the URL length permitted by most user agents. Keeping this method to work with non-conformant Identity Providers.
-
processSamlResponse
public javax.ws.rs.core.Response processSamlResponse(org.opensaml.saml.saml2.core.Response samlResponse, String relayState, boolean wasRedirectSigned) -
processSamlResponse
-
setSessionFactory
public void setSessionFactory(ddf.security.http.SessionFactory sessionFactory) -
retrieveMetadata
@GET @Path("/metadata") @Produces("application/xml") public javax.ws.rs.core.Response retrieveMetadata() throws org.apache.wss4j.common.ext.WSSecurityException, CertificateEncodingException- Throws:
org.apache.wss4j.common.ext.WSSecurityExceptionCertificateEncodingException
-
getLoginFilter
public org.codice.ddf.platform.filter.SecurityFilter getLoginFilter() -
setLoginFilter
public void setLoginFilter(org.codice.ddf.platform.filter.SecurityFilter loginFilter) -
setRequest
public void setRequest(javax.servlet.http.HttpServletRequest request) -
setContextPolicyManager
public void setContextPolicyManager(org.codice.ddf.security.policy.context.ContextPolicyManager contextPolicyManager) -
setSamlSecurity
public void setSamlSecurity(org.codice.ddf.security.jaxrs.SamlSecurity samlSecurity)
-