Package ddf.security.samlp.impl
Class LogoutMessageImpl
java.lang.Object
ddf.security.samlp.impl.LogoutMessageImpl
- All Implemented Interfaces:
ddf.security.samlp.LogoutMessage
-
Constructor Summary
ConstructorsConstructorDescriptionLogoutMessageImpl(org.codice.ddf.platform.util.uuidgenerator.UuidGenerator generator) -
Method Summary
Modifier and TypeMethodDescriptionddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutRequest>buildLogoutRequest(String nameIdString, String issuerOrEntityId, String id, List<String> sessionIndexes) ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutRequest>buildLogoutRequest(String nameIdString, String issuerOrEntityId, List<String> sessionIndexes) Returns a newLogoutRequestwith a randomly generated ID, the current time for theIssueInstant, andVersionset to"2.0"ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutResponse>buildLogoutResponse(String issuerOrEntityId, String statusCodeValue) ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutResponse>buildLogoutResponse(String issuerOrEntityId, String statusCodeValue, String inResponseTo) ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutResponse>buildLogoutResponse(String issuerOrEntityId, String topLevelStatusCode, String secondLevelStatusCode, String inResponseTo) ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutRequest>extractSamlLogoutRequest(String samlLogoutResponse) ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutResponse>extractSamlLogoutResponse(String samlLogoutResponse) ddf.security.samlp.LogoutWrapper<org.opensaml.saml.common.SignableSAMLObject>extractXmlObject(String samlLogoutResponse) getElementFromSaml(ddf.security.samlp.LogoutWrapper xmlObject) getIdpSingleLogoutLocation(org.opensaml.saml.saml2.metadata.IDPSSODescriptor descriptor) org.codice.ddf.platform.util.uuidgenerator.UuidGeneratorsendSamlLogoutRequest(ddf.security.samlp.LogoutWrapper request, String targetUri, boolean isSoap, javax.servlet.http.Cookie cookie) voidsetSystemCrypto(ddf.security.samlp.impl.SystemCrypto systemCrypto) signSamlGetRequest(ddf.security.samlp.LogoutWrapper samlObject, URI target, String relayState) signSamlGetResponse(ddf.security.samlp.LogoutWrapper samlObject, URI target, String relayState)
-
Constructor Details
-
LogoutMessageImpl
public LogoutMessageImpl(org.codice.ddf.platform.util.uuidgenerator.UuidGenerator generator)
-
-
Method Details
-
getIdpSingleLogoutLocation
public String getIdpSingleLogoutLocation(org.opensaml.saml.saml2.metadata.IDPSSODescriptor descriptor) -
extractXmlObject
public ddf.security.samlp.LogoutWrapper<org.opensaml.saml.common.SignableSAMLObject> extractXmlObject(String samlLogoutResponse) throws ddf.security.samlp.LogoutSecurityException, XMLStreamException - Specified by:
extractXmlObjectin interfaceddf.security.samlp.LogoutMessage- Throws:
ddf.security.samlp.LogoutSecurityExceptionXMLStreamException
-
extractSamlLogoutResponse
public ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutResponse> extractSamlLogoutResponse(String samlLogoutResponse) throws XMLStreamException, ddf.security.samlp.LogoutSecurityException - Specified by:
extractSamlLogoutResponsein interfaceddf.security.samlp.LogoutMessage- Throws:
XMLStreamExceptionddf.security.samlp.LogoutSecurityException
-
extractSamlLogoutRequest
public ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutRequest> extractSamlLogoutRequest(String samlLogoutResponse) throws XMLStreamException, ddf.security.samlp.LogoutSecurityException - Specified by:
extractSamlLogoutRequestin interfaceddf.security.samlp.LogoutMessage- Throws:
XMLStreamExceptionddf.security.samlp.LogoutSecurityException
-
buildLogoutRequest
public ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutRequest> buildLogoutRequest(String nameIdString, String issuerOrEntityId, List<String> sessionIndexes) Returns a newLogoutRequestwith a randomly generated ID, the current time for theIssueInstant, andVersionset to"2.0"- Specified by:
buildLogoutRequestin interfaceddf.security.samlp.LogoutMessage- Parameters:
nameIdString- NameId of user to log outissuerOrEntityId- The Issuer of the LogoutRequestsessionIndexes- The list of session indexes selected for log out- Returns:
- the built
LogoutRequest
-
buildLogoutRequest
-
buildLogoutResponse
public ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutResponse> buildLogoutResponse(String issuerOrEntityId, String statusCodeValue) - Specified by:
buildLogoutResponsein interfaceddf.security.samlp.LogoutMessage- Parameters:
issuerOrEntityId- the issuer or entity id to use when building the responsestatusCodeValue- the success, failure or partial logout status code- Returns:
- LogoutResponse
-
buildLogoutResponse
public ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutResponse> buildLogoutResponse(String issuerOrEntityId, String statusCodeValue, String inResponseTo) - Specified by:
buildLogoutResponsein interfaceddf.security.samlp.LogoutMessage
-
buildLogoutResponse
public ddf.security.samlp.LogoutWrapper<org.opensaml.saml.saml2.core.LogoutResponse> buildLogoutResponse(String issuerOrEntityId, String topLevelStatusCode, String secondLevelStatusCode, String inResponseTo) - Specified by:
buildLogoutResponsein interfaceddf.security.samlp.LogoutMessage
-
getElementFromSaml
public Element getElementFromSaml(ddf.security.samlp.LogoutWrapper xmlObject) throws ddf.security.samlp.LogoutSecurityException - Specified by:
getElementFromSamlin interfaceddf.security.samlp.LogoutMessage- Throws:
ddf.security.samlp.LogoutSecurityException
-
sendSamlLogoutRequest
public String sendSamlLogoutRequest(ddf.security.samlp.LogoutWrapper request, String targetUri, boolean isSoap, @Nullable javax.servlet.http.Cookie cookie) throws IOException, ddf.security.samlp.LogoutSecurityException - Specified by:
sendSamlLogoutRequestin interfaceddf.security.samlp.LogoutMessage- Throws:
IOExceptionddf.security.samlp.LogoutSecurityException
-
signSamlGetResponse
public URI signSamlGetResponse(ddf.security.samlp.LogoutWrapper samlObject, URI target, String relayState) throws ddf.security.samlp.LogoutSecurityException, ddf.security.samlp.SignatureException, IOException - Specified by:
signSamlGetResponsein interfaceddf.security.samlp.LogoutMessage- Throws:
ddf.security.samlp.LogoutSecurityExceptionddf.security.samlp.SignatureExceptionIOException
-
signSamlGetRequest
public URI signSamlGetRequest(ddf.security.samlp.LogoutWrapper samlObject, URI target, String relayState) throws ddf.security.samlp.LogoutSecurityException, ddf.security.samlp.SignatureException, IOException - Specified by:
signSamlGetRequestin interfaceddf.security.samlp.LogoutMessage- Throws:
ddf.security.samlp.LogoutSecurityExceptionddf.security.samlp.SignatureExceptionIOException
-
setSystemCrypto
public void setSystemCrypto(ddf.security.samlp.impl.SystemCrypto systemCrypto) -
getUuidGenerator
public org.codice.ddf.platform.util.uuidgenerator.UuidGenerator getUuidGenerator()
-