In python 2.7.x many issues have occured where comparison between 'JavaString' & 'str' have failed.
https://github.com/kurtbrose/pyjks/issues/60, https://github.com/kurtbrose/pyjks/issues/47
type cast sealed_obj.sealAlg which is of type <class 'javaobj.v1.beans.JavaString'> to <type 'str'>
So, that 'String' to 'String' comparison is performed and not 'JavaString' to 'String'
In python 2.7.x many issues have occured where comparison between 'JavaString' & 'str' have failed. https://github.com/kurtbrose/pyjks/issues/60, https://github.com/kurtbrose/pyjks/issues/47 type cast sealed_obj.sealAlg which is of type <class 'javaobj.v1.beans.JavaString'> to <type 'str'> So, that 'String' to 'String' comparison is performed and not 'JavaString' to 'String'