Rest or java api for getting issue security scheme/level on an issue

Is there any rest API or some java API to get the issue security scheme on a single issue? And, eventually, I can fetch the security levels inside that issue scheme.