Skip to content

Commit f404fb0

Browse files
committed
Support SP Key RollOver - minor fix
1 parent feaa30e commit f404fb0

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

core/src/main/java/com/onelogin/saml2/settings/Metadata.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*

0 commit comments

Comments
 (0)