See if OTP is configured

Hello, in my Java code I want to check if the default OTP has been configured. I can’t seem to find the right method or class to get this to work. Is there some easy out of the box way to do this? Or do I have manually have to check some attributes of the user, if yes, which attributes?
Thank you :slight_smile: