utils: pki-resource: cleanup: levarage enum for constants

use java magic in the attempt of simplify the interface.

unsure that the result is simpler than the original.

Change-Id: I24da0ff174599ffdeabbf5846eab429bf0d6510d
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>