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 LogoutMessage
public org.opensaml.saml.common.SignableSAMLObject extractXmlObject(String samlLogoutResponse) throws org.apache.wss4j.common.ext.WSSecurityException, XMLStreamException
extractXmlObject
in interface LogoutMessage
org.apache.wss4j.common.ext.WSSecurityException
XMLStreamException
public org.opensaml.saml.saml2.core.LogoutResponse extractSamlLogoutResponse(String samlLogoutResponse) throws XMLStreamException, org.apache.wss4j.common.ext.WSSecurityException
extractSamlLogoutResponse
in interface LogoutMessage
XMLStreamException
org.apache.wss4j.common.ext.WSSecurityException
public org.opensaml.saml.saml2.core.LogoutRequest extractSamlLogoutRequest(String samlLogoutResponse) throws XMLStreamException, org.apache.wss4j.common.ext.WSSecurityException
extractSamlLogoutRequest
in interface LogoutMessage
XMLStreamException
org.apache.wss4j.common.ext.WSSecurityException
public 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 LogoutMessage
nameIdString
- NameId of user to log outissuerOrEntityId
- The Issuer of the LogoutRequestsessionIndexes
- The list of session indexes selected for log outLogoutRequest
public 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 LogoutMessage
issuerOrEntityId
- 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 LogoutMessage
public 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 LogoutMessage
org.apache.wss4j.common.ext.WSSecurityException
public String sendSamlLogoutRequest(org.opensaml.saml.saml2.core.LogoutRequest request, String targetUri) throws IOException, org.apache.wss4j.common.ext.WSSecurityException
sendSamlLogoutRequest
in interface LogoutMessage
IOException
org.apache.wss4j.common.ext.WSSecurityException
public 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 LogoutMessage
org.apache.wss4j.common.ext.WSSecurityException
SimpleSign.SignatureException
IOException
public 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 LogoutMessage
org.apache.wss4j.common.ext.WSSecurityException
SimpleSign.SignatureException
IOException
public void setSystemCrypto(SystemCrypto systemCrypto)
public UuidGenerator getUuidGenerator()
This work is licensed under a Creative Commons Attribution 4.0 International License.