@Override
    public Pair<String, String> buildSelfSignedEncryptionCert(final Optional<SamlRegisteredService> registeredService) throws Exception {
        return generateCertificateAndKey();
    }
This is {@link DynamoDbSamlIdPMetadataGenerator}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-saml-idp-metadata-dynamodb/src/main/java/org/apereo/cas/support/saml/idp/metadata/DynamoDbSamlIdPMetadataGenerator.java