Smack 4.4.0
Before I used following to get CAPTCHA bob base 64 string:
Registration registration = ....
StandardExtensionElement extensionElement = (StandardExtensionElement) registration.getExtension(BoBManager.NAMESPACE);
String bobValue = extensionElement.getText();
Now registration.getExtension(BoBManager.NAMESPACE) returns BoBDataExtension so naturally the code above throws
java.lang.ClassCastException: org.jivesoftware.smackx.bob.element.BoBDataExtension cannot be cast to org.jivesoftware.smack.packet.StandardExtensionElement
But if I use BoBDataExtension I cannot access bobData because it is private and there is no getter:
private final BoBData bobData;
Can you please add getter or advise how to do it otherwise?
Thank you