private static boolean isAccessPermitted(){
  try {
    ISSecurityPermission isp=new ISSecurityPermission("access","adminpassword");
    if (securityManager != null) {
      securityManager.checkPermission(isp);
    }
    return true;
  }
 catch (  SecurityException e) {
    Debug debug=Debug.getInstance("amSDK");
    debug.error("Security Alert: Unauthorized access to Encoding/Decoding" + " password utility: Returning NULL",e);
  }
  return false;
}

private static boolean isAccessPermitted ( ) { try { ISSecurityPermission isp = new ISSecurityPermission ( "access" , "adminpassword" ) ; if ( securityManager != null ) { securityManager . checkPermission ( isp ) ; } return true ; } catch ( SecurityException e ) { Debug debug = Debug . getInstance ( "amSDK" ) ; debug . error ( "Security Alert: Unauthorized access to Encoding/Decoding" + " password utility: Returning NULL" , e ) ; } return false ; }
checks security permission returns true if action is allowed , false otherwise
