}
private static void lintuvaaraAuthExample() {
// here should be Lintuvaara's public RSA key
String rsaKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDsBtrkGf4cQzZazUvKGgiVOOPCnM0tdzvVrmXUlDL4e+bNJs8uA+IsddoQKrYxJOQyDCw3SEv6aVXAzDKW1ypAbpoQ7jl3CIylqWasujW50zWb9Ki4QFDPz0Mhz2jTwyzLyCon08yBvQhmbKoZcLTVL+l87BY4umyhc8zaDL5FJwIDAQAB";
AESDecryptor decryptor = null;
try {
decryptor = new AESDecryptor(rsaKey);
} catch (AESDecryptorInitializationException e) {
e.printStackTrace();
}
Collection<String> allowedUserTypes = Utils.collection("admin", "rengastaja");
LintuvaaraAuthenticationUtil authUtil = new LintuvaaraAuthenticationUtil(decryptor, "pistelaskenta", allowedUserTypes);