Package org.picketlink.identity.federation.ws.addressing

Examples of org.picketlink.identity.federation.ws.addressing.EndpointReferenceType


        InputStream configStream = tcl.getResourceAsStream("parser/wst/wst-secondaryparameters.xml");

        WSTrustParser parser = new WSTrustParser();
        RequestSecurityToken requestToken = (RequestSecurityToken) parser.parse(configStream);

        EndpointReferenceType endpoint = (EndpointReferenceType) requestToken.getAppliesTo().getAny().get(0);
        assertEquals("http://localhost:8080/jaxws-samples-wsse-policy-trust/SecurityService", endpoint.getAddress().getValue());
        assertEquals(WSTrustConstants.ISSUE_REQUEST, requestToken.getRequestType().toASCIIString());
        assertEquals(SAMLUtil.SAML2_TOKEN_TYPE, requestToken.getTokenType().toASCIIString());

        // Now for the writing part
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
View Full Code Here


        assertEquals("testcontext", requestToken.getContext());
        assertEquals(WSTrustConstants.ISSUE_REQUEST, requestToken.getRequestType().toASCIIString());

        AppliesTo appliesTo = requestToken.getAppliesTo();
        EndpointReferenceType endpoint = (EndpointReferenceType) appliesTo.getAny().get(0);
        assertEquals("http://services.testcorp.org/provider2", endpoint.getAddress().getValue());

        assertEquals("http://docs.oasis-open.org/ws-sx/ws-trust/200512/PublicKey", requestToken.getKeyType().toASCIIString());

        UseKeyType useKeyType = requestToken.getUseKey();
        Element certEl = (Element) useKeyType.getAny().get(0);
View Full Code Here

                    String endpointURI = StaxParserUtil.getElementText(xmlEventReader);

                    AttributedURIType attributedURI = new AttributedURIType();
                    attributedURI.setValue(endpointURI);
                    EndpointReferenceType reference = new EndpointReferenceType();
                    reference.setAddress(attributedURI);

                    // Lets get the end element
                    xmlEvent = StaxParserUtil.getNextEvent(xmlEventReader);
                    EndElement endElement = (EndElement) xmlEvent;
                    StaxParserUtil.validate(endElement, ENDPOINT_REFERENCE);
View Full Code Here

TOP

Related Classes of org.picketlink.identity.federation.ws.addressing.EndpointReferenceType

Copyright © 2018 www.massapicom. 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.