FAMSTSImpl.java revision 4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1c
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * The contents of this file are subject to the terms
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * of the Common Development and Distribution License
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * (the License). You may not use this file except in
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * compliance with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * You can obtain a copy of the License at
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * https://opensso.dev.java.net/public/CDDLv1.0.html or
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * See the License for the specific language governing
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * permission and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * When distributing Covered Code, include this CDDL
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Header Notice in each file and include the License file
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * If applicable, add the following below the CDDL Header,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * with the fields enclosed by brackets [] replaced by
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * your own identifying information:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * "Portions Copyrighted [year] [name of copyright owner]"
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * $Id: FAMSTSImpl.java,v 1.6 2010/01/15 18:54:35 mrudul_uchil Exp $
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.api.security.trust.WSTrustException;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.api.security.trust.config.STSConfiguration;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.policy.impl.bindings.AppliesTo;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.GenericToken;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.WSTrustVersion;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.WSTrustConstants;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.WSTrustElementFactory;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.WSTrustFactory;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.sts.BaseSTSImpl;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.api.security.trust.WSTrustContract;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.IssuedTokenContext;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.impl.IssuedTokenContextImpl;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.impl.policy.Constants;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.elements.BaseSTSRequest;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.elements.BaseSTSResponse;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.elements.RequestSecurityToken;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.impl.DefaultSTSConfiguration;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.impl.DefaultTrustSPMetadata;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport com.sun.xml.ws.security.trust.util.WSTrustUtil;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterimport javax.xml.transform.TransformerException;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster@WebServiceProvider(wsdlLocation="WEB-INF/wsdl/famsts.wsdl")
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterpublic class FAMSTSImpl extends BaseSTSImpl implements Provider<Source>{
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster final STSConfiguration config = getConfiguration();
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster WSTrustElementFactory eleFac = WSTrustElementFactory.newInstance(wstVer);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster final RequestSecurityToken rst = parseRST(rstElement);
return rstrEle;
return msgCtx;
return rst;
return rtConfig;
return config;
return null;
throws WSTrustException {
return rstrEle;
throws WSTrustException {
return rstrEle;