Use createIdentityAndCertificate which returns the
certificate name instead of the key name. You can use
IdentityCertificate.certificateNameToPublicKeyName to convert the
certificate name to the key name.
Use
registerPrefix(prefix, onInterest, onRegisterFailed, onRegisterSuccess, flags, wireFormat)
where the onRegisterSuccess parameter comes after onRegisterFailed.
Use
registerPrefix(prefix, onInterest, onRegisterFailed, onRegisterSuccess, wireFormat)
where the onRegisterSuccess parameter comes after onRegisterFailed.