fixed accidental use of API introduced in java7 in SecurityConfigUtil

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>