Author: anil.saldhana(a)jboss.com
Date: 2011-04-23 02:29:10 -0400 (Sat, 23 Apr 2011)
New Revision: 910
Modified:
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/jaas/JBWSTokenIssuingLoginModule.java
Log:
adapt the Builder construction
Modified:
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/jaas/JBWSTokenIssuingLoginModule.java
===================================================================
---
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/jaas/JBWSTokenIssuingLoginModule.java 2011-04-23
06:27:00 UTC (rev 909)
+++
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/jaas/JBWSTokenIssuingLoginModule.java 2011-04-23
06:29:10 UTC (rev 910)
@@ -31,6 +31,7 @@
import org.picketlink.identity.federation.core.wstrust.STSClient;
import org.picketlink.identity.federation.core.wstrust.STSClientConfig;
+import org.picketlink.identity.federation.core.wstrust.STSClientConfig.Builder;
import org.picketlink.identity.federation.core.wstrust.auth.STSIssuingLoginModule;
import org.picketlink.trust.jbossws.handler.BinaryTokenHandler;
import org.picketlink.trust.jbossws.handler.SAML2Handler;
@@ -42,8 +43,27 @@
* @since Apr 22, 2011
*/
public class JBWSTokenIssuingLoginModule extends STSIssuingLoginModule
-{
+{
+ /**
+ * Key in the options to customize the WS-Addressing Issuer in the WS-T Call
+ */
+ public static final String WSA_ISSUER = "wsaIssuer";
+
+ /**
+ * Key in the options to customize the WS-Policy Applies To in the WS-T Call
+ */
+ public static final String WSP_APPIESTO = "wspAppliesTo";
+
@Override
+ protected Builder createBuilder()
+ {
+ Builder builder = super.createBuilder();
+ builder.wsaIssuer((String) options.get(WSA_ISSUER));
+ builder.wspAppliesTo((String) options.get(WSP_APPIESTO));
+ return builder;
+ }
+
+ @Override
protected STSClient createWSTrustClient(STSClientConfig config)
{
return new JBWSTokenClient(config);
Show replies by date