File tree Expand file tree Collapse file tree
core/src/main/java/com/onelogin/saml2/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -293,7 +293,23 @@ private String toOrganizationXml(Organization organization) {
293293 * Generates the KeyDescriptor section of the metadata's template
294294 *
295295 * @param cert
296+ * the public cert that will be used by the SP to sign and encrypt
297+ * @param wantsEncrypted
298+ * Whether to include the KeyDescriptor for encryption
299+ *
300+ * @return the KeyDescriptor section of the metadata's template
301+ */
302+ private String toX509KeyDescriptorsXML (X509Certificate cert , Boolean wantsEncrypted ) throws CertificateEncodingException {
303+ return this .toX509KeyDescriptorsXML (cert , null , wantsEncrypted );
304+ }
305+
306+ /**
307+ * Generates the KeyDescriptor section of the metadata's template
308+ *
309+ * @param certCurrent
296310 * the public cert that will be used by the SP to sign and encrypt
311+ * @param certNew
312+ * the public cert that will be used by the SP to sign and encrypt in future
297313 * @param wantsEncrypted
298314 * Whether to include the KeyDescriptor for encryption
299315 *
You can’t perform that action at this time.
0 commit comments