Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DCAD710D70 for ; Thu, 23 Jan 2014 21:27:46 +0000 (UTC) Received: (qmail 93425 invoked by uid 500); 23 Jan 2014 21:27:44 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 93376 invoked by uid 500); 23 Jan 2014 21:27:43 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 93291 invoked by uid 99); 23 Jan 2014 21:27:41 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jan 2014 21:27:41 +0000 Date: Thu, 23 Jan 2014 21:27:41 +0000 (UTC) From: "Rebecca Searls (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-5519) Setting SecurityConstants.STS_TOKEN_ACT_AS as CallbackHander requires better documentation. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rebecca Searls updated CXF-5519: -------------------------------- Component/s: Documentation Description: Using: cxf-tr-ws-security-2.7.8 The current documentation states that SecurityConstants.STS_TOKEN_ACT_AS declared with "a CallbackHandler object to use to obtain the token" A very specific CallbackHandler implementation is required. It MUST be an implementation that supports processing DelegationCallback as input and generating a org.w3c.dom.Element. Existing examples are org.apache.cxf.ws.security.trust.delegation.ReceivedTokenCallbackHandler org.apache.cxf.ws.security.trust.delegation.WSSUsernameCallbackHandler The code in org.apache.cxf.ws.security.trust.AbstractSTSClient requires this. 814 DelegationCallback callback = new DelegationCallback(message); 815 ((CallbackHandler)delegationObject).handle(new Callback[]{callback}); 816 return callback.getToken(); was: Using: cxf-tr-ws-security-2.7.8 The current documentation states that SecurityConstants.STS_TOKEN_ACT_AS declared with "a CallbackHandler object to use to obtain the token" A very specific CallbackHandler implementation is required. It MUST be an implementation that supports processing DelegationCallback as input and generating a org.w3c.dom.Element. Existing examples are org.apache.cxf.ws.security.trust.delegation.ReceivedTokenCallbackHandler org.apache.cxf.ws.security.trust.delegation.WSSUsernameCallbackHandler The code in org.apache.cxf.ws.security.trust.AbstractSTSClient requires this. 814 DelegationCallback callback = new DelegationCallback(message); 815 ((CallbackHandler)delegationObject).handle(new Callback[]{callback}); 816 return callback.getToken(); > Setting SecurityConstants.STS_TOKEN_ACT_AS as CallbackHander requires better documentation. > ------------------------------------------------------------------------------------------- > > Key: CXF-5519 > URL: https://issues.apache.org/jira/browse/CXF-5519 > Project: CXF > Issue Type: Improvement > Components: Documentation, JAX-RS Security > Affects Versions: 3.0.0-milestone1, 2.7.8 > Reporter: Rebecca Searls > > Using: cxf-tr-ws-security-2.7.8 > The current documentation states that SecurityConstants.STS_TOKEN_ACT_AS > declared with "a CallbackHandler object to use to obtain the token" > A very specific CallbackHandler implementation is required. It MUST be > an implementation that supports processing DelegationCallback as input and > generating a org.w3c.dom.Element. > > Existing examples are > org.apache.cxf.ws.security.trust.delegation.ReceivedTokenCallbackHandler > org.apache.cxf.ws.security.trust.delegation.WSSUsernameCallbackHandler > > The code in org.apache.cxf.ws.security.trust.AbstractSTSClient requires this. > 814 DelegationCallback callback = new DelegationCallback(message); > 815 ((CallbackHandler)delegationObject).handle(new Callback[]{callback}); > 816 return callback.getToken(); -- This message was sent by Atlassian JIRA (v6.1.5#6160)