UnsupportedOperationException while trying get token from PickletSTS
guptar Oct 12, 2011 11:22 AMPicketLink set up on JBoss 5.1.0.GA
1. PicketLink version - 2.0.1.final
2. The below jars are available in <JBOSS_HOME>/server/<server_name>/lib
- picketlink-bindings-2.0.1.final.jar
- picketlink-bindings-jboss-2.0.1.final.jar
- picketlink-fed-2.0.1.final.jar
- picketlink-trust-jbossws-2.0.1.final.jar
3. Added sp configuration file and PicketLink war in deploy folder
4. After starting up JBoss I am able to see and invoke the PicketLink endpoint. So I assume at this stage PicketLink is correctly configured.
Client configuration and invocation
1. while trying to get a token from PicketLink STS I get the below exception. This after a I have a WSTrustClient object created with required url, username and password. After looking at the source code I understand the UnsupportedOperationException is thrown since method PicketLinkSTS.handleTokenRequestCollection has a pending implementation .
2. Can you please let me know if I am missing anything in my JBoss configuration ?
WSTrustClient wsTrustClient = new WSTrustClient("PicketLinkSTS", "PicketLinkSTSPort", STSSettings.getSetting("sts.uri"),
new SecurityInfo(STSSettings.getSetting("sts.user"), STSSettings.getSetting("sts.pass")));
Element assertion = wsTrustClient.issueToken(SAMLUtil.SAML2_TOKEN_TYPE);
15:52:31,162 INFO [UserLoginFacade] sts.uri-http://127.0.0.1:8080/picketlink-sts
15:52:31,162 INFO [UserLoginFacade] sts.user-admin
15:52:31,178 INFO [UserLoginFacade] sts.pass-admin
15:52:31,209 INFO [UserLoginFacade] WSTrustClient-org.picketlink.identity.federation.api.wstrust.WSTrustClient@1fdf179
15:52:31,209 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
java.lang.UnsupportedOperationException
at org.picketlink.identity.federation.core.wstrust.PicketLinkSTS.handleTokenRequestCollection(PicketLinkSTS.java:276)
at org.picketlink.identity.federation.core.wstrust.PicketLinkSTS.invoke(PicketLinkSTS.java:168)
at org.picketlink.identity.federation.core.wstrust.PicketLinkSTS.invoke(PicketLinkSTS.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:108)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:222)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:474)