/** * <p> * Creates an instance of {@code RequestedReferenceType} with the specified values. This method first creates a * {@code SecurityTokenReferenceType} with the specified key identifier and attributes and then use this reference * to * construct the {@code RequestedReferenceType} that is returned. * </p> * * @param keyIdentifier the key identifier of the security token reference. * @param attributes the attributes to be set on the security token reference. * * @return the constructed {@code RequestedReferenceType} instance. */ public static RequestedReferenceType createRequestedReference(KeyIdentifierType keyIdentifier, Map<QName, String> attributes) { SecurityTokenReferenceType securityTokenReference = new SecurityTokenReferenceType(); securityTokenReference.addAny(keyIdentifier); securityTokenReference.addOtherAttributes(attributes); RequestedReferenceType reference = new RequestedReferenceType(); reference.setSecurityTokenReference(securityTokenReference); return reference; }
StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.REQUESTED_ATTACHED_REFERENCE, WSTrustConstants.BASE_NAMESPACE); new WSSecurityWriter(this.writer).writeSecurityTokenReference(ref.getSecurityTokenReference()); StaxUtil.writeEndElement(this.writer); StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.REQUESTED_UNATTACHED_REFERENCE, WSTrustConstants.BASE_NAMESPACE); new WSSecurityWriter(this.writer).writeSecurityTokenReference(ref.getSecurityTokenReference()); StaxUtil.writeEndElement(this.writer);
StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.REQUESTED_ATTACHED_REFERENCE, WSTrustConstants.BASE_NAMESPACE); new WSSecurityWriter(this.writer).writeSecurityTokenReference(ref.getSecurityTokenReference()); StaxUtil.writeEndElement(this.writer); StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.REQUESTED_UNATTACHED_REFERENCE, WSTrustConstants.BASE_NAMESPACE); new WSSecurityWriter(this.writer).writeSecurityTokenReference(ref.getSecurityTokenReference()); StaxUtil.writeEndElement(this.writer);
/** * <p> * Creates an instance of {@code RequestedReferenceType} with the specified values. This method first creates a * {@code SecurityTokenReferenceType} with the specified key identifier and attributes and then use this reference to * construct the {@code RequestedReferenceType} that is returned. * </p> * * @param keyIdentifier the key identifier of the security token reference. * @param attributes the attributes to be set on the security token reference. * @return the constructed {@code RequestedReferenceType} instance. */ public static RequestedReferenceType createRequestedReference(KeyIdentifierType keyIdentifier, Map<QName, String> attributes) { SecurityTokenReferenceType securityTokenReference = new SecurityTokenReferenceType(); securityTokenReference.addAny(keyIdentifier); securityTokenReference.addOtherAttributes(attributes); RequestedReferenceType reference = new RequestedReferenceType(); reference.setSecurityTokenReference(securityTokenReference); return reference; }
StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.REQUESTED_ATTACHED_REFERENCE, WSTrustConstants.BASE_NAMESPACE); new WSSecurityWriter(this.writer).writeSecurityTokenReference(ref.getSecurityTokenReference()); StaxUtil.writeEndElement(this.writer); StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.REQUESTED_UNATTACHED_REFERENCE, WSTrustConstants.BASE_NAMESPACE); new WSSecurityWriter(this.writer).writeSecurityTokenReference(ref.getSecurityTokenReference()); StaxUtil.writeEndElement(this.writer);
/** * <p> * Creates an instance of {@code RequestedReferenceType} with the specified values. This method first creates a * {@code SecurityTokenReferenceType} with the specified key identifier and attributes and then use this reference * to * construct the {@code RequestedReferenceType} that is returned. * </p> * * @param keyIdentifier the key identifier of the security token reference. * @param attributes the attributes to be set on the security token reference. * * @return the constructed {@code RequestedReferenceType} instance. */ public static RequestedReferenceType createRequestedReference(KeyIdentifierType keyIdentifier, Map<QName, String> attributes) { SecurityTokenReferenceType securityTokenReference = new SecurityTokenReferenceType(); securityTokenReference.addAny(keyIdentifier); securityTokenReference.addOtherAttributes(attributes); RequestedReferenceType reference = new RequestedReferenceType(); reference.setSecurityTokenReference(securityTokenReference); return reference; }
StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.REQUESTED_ATTACHED_REFERENCE, WSTrustConstants.BASE_NAMESPACE); new WSSecurityWriter(this.writer).writeSecurityTokenReference(ref.getSecurityTokenReference()); StaxUtil.writeEndElement(this.writer);
/** * <p> * Creates an instance of {@code RequestedReferenceType} with the specified values. This method first creates a * {@code SecurityTokenReferenceType} with the specified key identifier and attributes and then use this reference * to construct the {@code RequestedReferenceType} that is returned. * </p> * * @param keyIdentifier the key identifier of the security token reference. * @param attributes the attributes to be set on the security token reference. * @return the constructed {@code RequestedReferenceType} instance. */ public static RequestedReferenceType createRequestedReference(KeyIdentifierType keyIdentifier, Map<QName, String> attributes) { SecurityTokenReferenceType securityTokenReference = new SecurityTokenReferenceType(); securityTokenReference.addAny(keyIdentifier); securityTokenReference.addOtherAttributes(attributes); RequestedReferenceType reference = new RequestedReferenceType(); reference.setSecurityTokenReference(securityTokenReference); return reference; }
StaxUtil.writeStartElement(this.writer, WSTrustConstants.PREFIX, WSTrustConstants.REQUESTED_ATTACHED_REFERENCE, WSTrustConstants.BASE_NAMESPACE); new WSSecurityWriter(this.writer).writeSecurityTokenReference(ref.getSecurityTokenReference()); StaxUtil.writeEndElement(this.writer);
/** * <p> * Creates an instance of {@code RequestedReferenceType} with the specified values. This method first creates a * {@code SecurityTokenReferenceType} with the specified key identifier and attributes and then use this reference * to construct the {@code RequestedReferenceType} that is returned. * </p> * * @param keyIdentifier the key identifier of the security token reference. * @param attributes the attributes to be set on the security token reference. * @return the constructed {@code RequestedReferenceType} instance. */ public static RequestedReferenceType createRequestedReference(KeyIdentifierType keyIdentifier, Map<QName, String> attributes) { SecurityTokenReferenceType securityTokenReference = new SecurityTokenReferenceType(); securityTokenReference.addAny(keyIdentifier); securityTokenReference.addOtherAttributes(attributes); RequestedReferenceType reference = new RequestedReferenceType(); reference.setSecurityTokenReference(securityTokenReference); return reference; }
private RequestedReferenceType parseRequestedReference(XMLEventReader xmlEventReader) throws ParsingException { StartElement startElement = StaxParserUtil.getNextStartElement(xmlEventReader); StaxParserUtil.validate(startElement, WSTrustConstants.REQUESTED_ATTACHED_REFERENCE); RequestedReferenceType ref = new RequestedReferenceType(); WSSecurityParser wsseParser = new WSSecurityParser(); SecurityTokenReferenceType secref = (SecurityTokenReferenceType) wsseParser.parse(xmlEventReader); ref.setSecurityTokenReference(secref); EndElement endElement = StaxParserUtil.getNextEndElement(xmlEventReader); StaxParserUtil.validate(endElement, WSTrustConstants.REQUESTED_ATTACHED_REFERENCE); return ref; } }
private RequestedReferenceType parseRequestedReference(XMLEventReader xmlEventReader, String requestedReferenceTag) throws ParsingException { StartElement startElement = StaxParserUtil.getNextStartElement(xmlEventReader); StaxParserUtil.validate(startElement, requestedReferenceTag); RequestedReferenceType ref = new RequestedReferenceType(); WSSecurityParser wsseParser = new WSSecurityParser(); SecurityTokenReferenceType secref = (SecurityTokenReferenceType) wsseParser.parse(xmlEventReader); ref.setSecurityTokenReference(secref); EndElement endElement = StaxParserUtil.getNextEndElement(xmlEventReader); StaxParserUtil.validate(endElement, requestedReferenceTag); return ref; }
private RequestedReferenceType parseRequestedReference(XMLEventReader xmlEventReader, String requestedReferenceTag) throws ParsingException { StartElement startElement = StaxParserUtil.getNextStartElement(xmlEventReader); StaxParserUtil.validate(startElement, requestedReferenceTag); RequestedReferenceType ref = new RequestedReferenceType(); WSSecurityParser wsseParser = new WSSecurityParser(); SecurityTokenReferenceType secref = (SecurityTokenReferenceType) wsseParser.parse(xmlEventReader); ref.setSecurityTokenReference(secref); EndElement endElement = StaxParserUtil.getNextEndElement(xmlEventReader); StaxParserUtil.validate(endElement, requestedReferenceTag); return ref; }
private RequestedReferenceType parseRequestedReference(XMLEventReader xmlEventReader) throws ParsingException { StartElement startElement = StaxParserUtil.getNextStartElement(xmlEventReader); StaxParserUtil.validate(startElement, WSTrustConstants.REQUESTED_ATTACHED_REFERENCE); RequestedReferenceType ref = new RequestedReferenceType(); WSSecurityParser wsseParser = new WSSecurityParser(); SecurityTokenReferenceType secref = (SecurityTokenReferenceType) wsseParser.parse(xmlEventReader); ref.setSecurityTokenReference(secref); EndElement endElement = StaxParserUtil.getNextEndElement(xmlEventReader); StaxParserUtil.validate(endElement, WSTrustConstants.REQUESTED_ATTACHED_REFERENCE); return ref; } }
private RequestedReferenceType parseRequestedReference(XMLEventReader xmlEventReader, String requestedReferenceTag) throws ParsingException { StartElement startElement = StaxParserUtil.getNextStartElement(xmlEventReader); StaxParserUtil.validate(startElement, requestedReferenceTag); RequestedReferenceType ref = new RequestedReferenceType(); WSSecurityParser wsseParser = new WSSecurityParser(); SecurityTokenReferenceType secref = (SecurityTokenReferenceType) wsseParser.parse(xmlEventReader); ref.setSecurityTokenReference(secref); EndElement endElement = StaxParserUtil.getNextEndElement(xmlEventReader); StaxParserUtil.validate(endElement, requestedReferenceTag); return ref; }