private fun addSignatureProfile(signature: SignatureWrapper, xmlSignature: XmlSignature) {var signatureType: SignatureType = SignatureType.NA val certificateId: String = signature.getSigningCertificateId() if (certificateId != null) { signatureType = getSignatureType(certificateId) } xmlSignature.setSignatureLevel(signatureType.name()) }
Here we determine the type of the signature .