jrihtarsic commented on code in PR #234: URL: https://github.com/apache/santuario-xml-security-java/pull/234#discussion_r1412412984
########## src/main/java/org/apache/xml/security/encryption/keys/KeyInfoEncExtension.java: ########## @@ -0,0 +1,113 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * <p> + * http://www.apache.org/licenses/LICENSE-2.0 + * <p> + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.xml.security.encryption.keys; + +import org.apache.xml.security.encryption.AgreementMethod; +import org.apache.xml.security.encryption.keys.content.AgreementMethodImpl; +import org.apache.xml.security.exceptions.XMLSecurityException; +import org.apache.xml.security.keys.KeyInfo; +import org.apache.xml.security.utils.ElementProxy; +import org.apache.xml.security.utils.EncryptionConstants; +import org.apache.xml.security.utils.I18n; +import org.apache.xml.security.utils.XMLUtils; +import org.w3c.dom.Document; +import org.w3c.dom.Element; + +import java.lang.System.Logger; +import java.lang.System.Logger.Level; + +/** + * This class is the extension of the {@link org.apache.xml.security.keys.KeyInfo} class. + * The {@link org.apache.xml.security.keys.KeyInfo} implements XML structures defined in XML Signature standards, + * and this class extends it for handling XML Element types defined by the XML encryption standards, + * such as AgreementMethod. + * KeyInfoEncExtension + */ +public class KeyInfoEncExtension extends KeyInfo { Review Comment: Renamed to KeyInfoEnc ########## src/main/java/org/apache/xml/security/encryption/keys/RecipientKeyInfo.java: ########## @@ -0,0 +1,58 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.xml.security.encryption.keys; + +import org.apache.xml.security.exceptions.XMLSecurityException; +import org.apache.xml.security.utils.EncryptionConstants; +import org.w3c.dom.Document; +import org.w3c.dom.Element; + + +/** + * The RecipientKeyInfo element is used in the <code>ds:KeyInfo</code> with AgreementMethod elements. + * @see <a href="https://www.w3.org/TR/xmlenc-core1/#sec-Alg-KeyAgreement">KeyAgreement</a>. The RecipientKeyInfo + * element extends ds:KeyInfo with namespace xenc (http://www.w3.org/2001/04/xmlenc#) amd is used to describe + * the recipient's key. + */ +public class RecipientKeyInfo extends KeyInfoEncExtension { Review Comment: Done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
