Examples of RequestedSecurityTokenType


Examples of org.apache.cxf.ws.security.sts.provider.model.RequestedSecurityTokenType

        // Test the generated token.
        Element assertion = null;
        for (Object tokenObject : response.getAny()) {
            if (tokenObject instanceof JAXBElement<?>
                && REQUESTED_SECURITY_TOKEN.equals(((JAXBElement<?>)tokenObject).getName())) {
                RequestedSecurityTokenType rstType =
                    (RequestedSecurityTokenType)((JAXBElement<?>)tokenObject).getValue();
                assertion = (Element)rstType.getAny();
                break;
            }
        }
       
        assertNotNull(assertion);
View Full Code Here

Examples of org.apache.cxf.ws.security.sts.provider.model.RequestedSecurityTokenType

        // Test the generated token.
        Element assertion = null;
        for (Object tokenObject : response.getAny()) {
            if (tokenObject instanceof JAXBElement<?>
                && REQUESTED_SECURITY_TOKEN.equals(((JAXBElement<?>)tokenObject).getName())) {
                RequestedSecurityTokenType rstType =
                    (RequestedSecurityTokenType)((JAXBElement<?>)tokenObject).getValue();
                assertion = (Element)rstType.getAny();
                break;
            }
        }
       
        assertNotNull(assertion);
View Full Code Here

Examples of org.apache.cxf.ws.security.sts.provider.model.RequestedSecurityTokenType

        // Test the generated token.
        Element assertion = null;
        for (Object tokenObject : response.getAny()) {
            if (tokenObject instanceof JAXBElement<?>
                && REQUESTED_SECURITY_TOKEN.equals(((JAXBElement<?>)tokenObject).getName())) {
                RequestedSecurityTokenType rstType =
                    (RequestedSecurityTokenType)((JAXBElement<?>)tokenObject).getValue();
                assertion = (Element)rstType.getAny();
                break;
            }
        }
       
        assertNotNull(assertion);
View Full Code Here

Examples of org.jboss.identity.federation.ws.trust.RequestedSecurityTokenType

               }
            }
         }*/

         // construct the ws-trust security token response.
         RequestedSecurityTokenType requestedSecurityToken = new RequestedSecurityTokenType();
         requestedSecurityToken.setAny(requestContext.getSecurityToken().getTokenValue());

         // TODO: create proof token and encrypt the token if needed

         RequestSecurityTokenResponse response = new RequestSecurityTokenResponse();
         if (request.getContext() != null)
View Full Code Here

Examples of org.picketlink.identity.federation.ws.trust.RequestedSecurityTokenType

        if (requestContext.getSecurityToken() == null)
            throw new WSTrustException(logger.nullValueError("Token issued by STS"));

        // construct the ws-trust security token response.
        RequestedSecurityTokenType requestedSecurityToken = new RequestedSecurityTokenType();

        SecurityToken contextSecurityToken = requestContext.getSecurityToken();
        if (contextSecurityToken == null)
            throw new WSTrustException(logger.nullValueError("Security Token from context"));

        requestedSecurityToken.add(contextSecurityToken.getTokenValue());

        RequestSecurityTokenResponse response = new RequestSecurityTokenResponse();
        if (request.getContext() != null)
            response.setContext(request.getContext());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.