public class LogoutMessageImpl extends Object implements LogoutMessage
| Modifier and Type | Field and Description |
|---|---|
static String |
SAML_SOAP_ACTION |
static String |
SOAP_BINDING |
| Constructor and Description |
|---|
LogoutMessageImpl(UuidGenerator generator) |
| Modifier and Type | Method and Description |
|---|---|
org.opensaml.saml.saml2.core.LogoutRequest |
buildLogoutRequest(String nameIdString,
String issuerOrEntityId,
List<String> sessionIndexes)
Returns a new
LogoutRequest with a randomly generated ID, the current time for the
IssueInstant, and Version set to "2.0" |
org.opensaml.saml.saml2.core.LogoutRequest |
buildLogoutRequest(String nameIdString,
String issuerOrEntityId,
String id,
List<String> sessionIndexes) |
org.opensaml.saml.saml2.core.LogoutResponse |
buildLogoutResponse(String issuerOrEntityId,
String statusCodeValue) |
org.opensaml.saml.saml2.core.LogoutResponse |
buildLogoutResponse(String issuerOrEntityId,
String statusCodeValue,
String inResponseTo) |
org.opensaml.saml.saml2.core.LogoutResponse |
buildLogoutResponse(String issuerOrEntityId,
String statusCodeValue,
String inResponseTo,
String id) |
org.opensaml.saml.saml2.core.LogoutRequest |
extractSamlLogoutRequest(String samlLogoutResponse) |
org.opensaml.saml.saml2.core.LogoutResponse |
extractSamlLogoutResponse(String samlLogoutResponse) |
org.opensaml.saml.common.SignableSAMLObject |
extractXmlObject(String samlLogoutResponse) |
Element |
getElementFromSaml(org.opensaml.core.xml.XMLObject xmlObject) |
String |
getIdpSingleLogoutLocation(org.opensaml.saml.saml2.metadata.IDPSSODescriptor descriptor) |
UuidGenerator |
getUuidGenerator() |
String |
sendSamlLogoutRequest(org.opensaml.saml.saml2.core.LogoutRequest request,
String targetUri) |
void |
setSystemCrypto(SystemCrypto systemCrypto) |
URI |
signSamlGetRequest(org.opensaml.saml.common.SAMLObject samlObject,
URI target,
String relayState) |
URI |
signSamlGetResponse(org.opensaml.saml.common.SAMLObject samlObject,
URI target,
String relayState) |
public static final String SOAP_BINDING
public static final String SAML_SOAP_ACTION
public LogoutMessageImpl(UuidGenerator generator)
public String getIdpSingleLogoutLocation(org.opensaml.saml.saml2.metadata.IDPSSODescriptor descriptor)
getIdpSingleLogoutLocation in interface LogoutMessagepublic org.opensaml.saml.common.SignableSAMLObject extractXmlObject(String samlLogoutResponse) throws org.apache.wss4j.common.ext.WSSecurityException, XMLStreamException
extractXmlObject in interface LogoutMessageorg.apache.wss4j.common.ext.WSSecurityExceptionXMLStreamExceptionpublic org.opensaml.saml.saml2.core.LogoutResponse extractSamlLogoutResponse(String samlLogoutResponse) throws XMLStreamException, org.apache.wss4j.common.ext.WSSecurityException
extractSamlLogoutResponse in interface LogoutMessageXMLStreamExceptionorg.apache.wss4j.common.ext.WSSecurityExceptionpublic org.opensaml.saml.saml2.core.LogoutRequest extractSamlLogoutRequest(String samlLogoutResponse) throws XMLStreamException, org.apache.wss4j.common.ext.WSSecurityException
extractSamlLogoutRequest in interface LogoutMessageXMLStreamExceptionorg.apache.wss4j.common.ext.WSSecurityExceptionpublic org.opensaml.saml.saml2.core.LogoutRequest buildLogoutRequest(String nameIdString, String issuerOrEntityId, List<String> sessionIndexes)
LogoutRequest with a randomly generated ID, the current time for the
IssueInstant, and Version set to "2.0"buildLogoutRequest in interface LogoutMessagenameIdString - NameId of user to log outissuerOrEntityId - The Issuer of the LogoutRequestsessionIndexes - The list of session indexes selected for log outLogoutRequestpublic org.opensaml.saml.saml2.core.LogoutRequest buildLogoutRequest(String nameIdString, String issuerOrEntityId, String id, List<String> sessionIndexes)
public org.opensaml.saml.saml2.core.LogoutResponse buildLogoutResponse(String issuerOrEntityId, String statusCodeValue)
buildLogoutResponse in interface LogoutMessageissuerOrEntityId - the issuer or entity id to use when building the responsestatusCodeValue - the success, failure or partial logout status codepublic org.opensaml.saml.saml2.core.LogoutResponse buildLogoutResponse(String issuerOrEntityId, String statusCodeValue, String inResponseTo)
buildLogoutResponse in interface LogoutMessagepublic org.opensaml.saml.saml2.core.LogoutResponse buildLogoutResponse(String issuerOrEntityId, String statusCodeValue, String inResponseTo, String id)
public Element getElementFromSaml(org.opensaml.core.xml.XMLObject xmlObject) throws org.apache.wss4j.common.ext.WSSecurityException
getElementFromSaml in interface LogoutMessageorg.apache.wss4j.common.ext.WSSecurityExceptionpublic String sendSamlLogoutRequest(org.opensaml.saml.saml2.core.LogoutRequest request, String targetUri) throws IOException, org.apache.wss4j.common.ext.WSSecurityException
sendSamlLogoutRequest in interface LogoutMessageIOExceptionorg.apache.wss4j.common.ext.WSSecurityExceptionpublic URI signSamlGetResponse(org.opensaml.saml.common.SAMLObject samlObject, URI target, String relayState) throws org.apache.wss4j.common.ext.WSSecurityException, SimpleSign.SignatureException, IOException
signSamlGetResponse in interface LogoutMessageorg.apache.wss4j.common.ext.WSSecurityExceptionSimpleSign.SignatureExceptionIOExceptionpublic URI signSamlGetRequest(org.opensaml.saml.common.SAMLObject samlObject, URI target, String relayState) throws org.apache.wss4j.common.ext.WSSecurityException, SimpleSign.SignatureException, IOException
signSamlGetRequest in interface LogoutMessageorg.apache.wss4j.common.ext.WSSecurityExceptionSimpleSign.SignatureExceptionIOExceptionpublic void setSystemCrypto(SystemCrypto systemCrypto)
public UuidGenerator getUuidGenerator()
This work is licensed under a Creative Commons Attribution 4.0 International License.