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

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


                    subEvent = StaxParserUtil.getNextStartElement(xmlEventReader);
                    StaxParserUtil.validate(subEvent, WSAddressingConstants.ADDRESS);
                    String addressValue = StaxParserUtil.getElementText(xmlEventReader);

                    EndpointReferenceType endpointRef = new EndpointReferenceType();
                    AttributedURIType attrURI = new AttributedURIType();
                    attrURI.setValue(addressValue);
                    endpointRef.setAddress(new AttributedURIType());
                    requestToken.setIssuer(endpointRef);

                    EndElement endElement = StaxParserUtil.getNextEndElement(xmlEventReader);
                    StaxParserUtil.validate(endElement, WSTrustConstants.ISSUER);
                } else if (tag.equals(WSTrustConstants.SECONDARY_PARAMETERS)) {
View Full Code Here


    public void write(EndpointReferenceType endpointReference) throws ProcessingException {
        StaxUtil.writeStartElement(writer, WSA_PREFIX, ENDPOINT_REFERENCE, WSA_NS);
        StaxUtil.writeNameSpace(writer, WSA_PREFIX, WSA_NS);

        AttributedURIType attributedURI = endpointReference.getAddress();
        if (attributedURI != null) {
            String value = attributedURI.getValue();

            StaxUtil.writeStartElement(writer, WSA_PREFIX, ADDRESS, WSA_NS);
            StaxUtil.writeCharacters(writer, value);
            StaxUtil.writeEndElement(writer);
        }
View Full Code Here

     *
     * @param endpointURI a {@code String} representing the endpoint URI.
     * @return the constructed {@code AppliesTo} instance.
     */
    public static AppliesTo createAppliesTo(String endpointURI) {
        AttributedURIType attributedURI = new AttributedURIType();
        attributedURI.setValue(endpointURI);
        EndpointReferenceType reference = new EndpointReferenceType();
        reference.setAddress(attributedURI);
        AppliesTo appliesTo = new AppliesTo();
        appliesTo.addAny(reference);

View Full Code Here

     *
     * @param addressUri
     * @return
     */
    public static EndpointReferenceType createIssuer(String addressUri) {
        AttributedURIType attributedURI = new AttributedURIType();
        attributedURI.setValue(addressUri);
        EndpointReferenceType endpointReference = new EndpointReferenceType();
        endpointReference.setAddress(attributedURI);
        return endpointReference;
    }
View Full Code Here

                    if (!StaxParserUtil.hasTextAhead(xmlEventReader))
                        throw logger.parserExpectedTextValue("endpointURI");

                    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);
View Full Code Here

TOP

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

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.