Author: anil.saldhana(a)jboss.com
Date: 2010-11-04 12:49:46 -0400 (Thu, 04 Nov 2010)
New Revision: 527
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/saml/v2/writers/SAMLRequestWriter.java
Log:
write destination and consent
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/saml/v2/writers/SAMLRequestWriter.java
===================================================================
---
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/saml/v2/writers/SAMLRequestWriter.java 2010-11-04
16:48:54 UTC (rev 526)
+++
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/saml/v2/writers/SAMLRequestWriter.java 2010-11-04
16:49:46 UTC (rev 527)
@@ -107,6 +107,16 @@
StaxUtil.writeAttribute( writer, JBossSAMLConstants.VERSION.get(),
logOutRequest.getVersion() );
StaxUtil.writeAttribute( writer, JBossSAMLConstants.ISSUE_INSTANT.get(),
logOutRequest.getIssueInstant().toString() );
+ String destination = logOutRequest.getDestination();
+ if( StringUtil.isNotNull( destination ))
+ {
+ StaxUtil.writeAttribute( writer,
JBossSAMLConstants.DESTINATION.get(),destination );
+ }
+
+ String consent = logOutRequest.getConsent();
+ if( StringUtil.isNotNull( consent ))
+ StaxUtil.writeAttribute( writer, JBossSAMLConstants.CONSENT.get(), consent );
+
NameIDType issuer = logOutRequest.getIssuer();
write( issuer, new QName( ASSERTION_NSURI.get(), JBossSAMLConstants.ISSUER.get() ),
out );
Show replies by date