Extract security from agdroid

perhaps a bit of javadoc for this class