Skip to main content

%XML.Security.ReferenceList

Class %XML.Security.ReferenceList Extends %SOAP.Security.Element [ System = 4 ]

XML Encryption element.

Parameters

XMLFORMAT

Parameter XMLFORMAT = "literal";

NAMESPACE

Parameter NAMESPACE = "http://www.w3.org/2001/04/xmlenc#";

ELEMENTQUALIFIED

Parameter ELEMENTQUALIFIED = 1;

Properties

Reference

Property Reference As list Of %RegisteredObject(XMLCHOICELIST = "%XML.Security.DataReference,%XML.Security.KeyReference", XMLPROJECTION = "element", XMLREF = 1, XMLTYPECONSTRAINT = "choice");

EncryptionAlgorithm

Property EncryptionAlgorithm As %String(XMLPROJECTION = "none") [ Internal ];

The algorithm used for encryption

X509Credentials

Property X509Credentials As %RawString(XMLPROJECTION = "none") [ Internal ];

Credentials that stores key information for Body encryption.

KeyInfo

Property KeyInfo As %XML.Security.KeyInfo(XMLPROJECTION = "none") [ Internal ];

KeyInfo used to encrypt.

Methods

AddReference

Method AddReference(reference As %XML.Security.DataReference)

Add a reference to XML element using a %XML.Security.DataReference. The reference may be created by using the ##class(%XML.Security.Reference).Create method.

InitializeForService

Method InitializeForService(service As %SOAP.WebBase, header As %SOAP.Security.Header, key As %Binary) As %Status [ Internal ]

Initialize

Perform

Method Perform(messageStream As %BinaryStream, header As %SOAP.Security.Header) As %Status [ Internal ]

Perform encryption

Reset

Method Reset() [ Internal ]

Reset the element.

ValidateElement

Method ValidateElement(ByRef document As %XML.Document, service As %SOAP.WebBase, mimeAttachments As %Net.MIMEPart = "", key As %Binary = "") As %String [ Internal ]

Validate the security header element. This method is also called to validate the ReferenceList in an EncryptedKey with the key as the third argument. If invalid return an error code.