add default for ticketvalidator
This commit is contained in:
parent
8d2a8e3ddf
commit
56b34d3016
@ -10,7 +10,7 @@ public class TicketValidatorFactory {
|
|||||||
TicketValidator ticketValidator = null;
|
TicketValidator ticketValidator = null;
|
||||||
if (ticketValidator == null) {
|
if (ticketValidator == null) {
|
||||||
try {
|
try {
|
||||||
final String property = Config.getInstance().getProperty(Config.TICKETVALIDATOR_CLASS);
|
final String property = Config.getInstance().getProperty(Config.TICKETVALIDATOR_CLASS, "de.hsadmin.login.cas.CASTicketValidator");
|
||||||
final Class<?> validatorClass = Class.forName(property);
|
final Class<?> validatorClass = Class.forName(property);
|
||||||
ticketValidator = (TicketValidator) validatorClass.newInstance();
|
ticketValidator = (TicketValidator) validatorClass.newInstance();
|
||||||
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {
|
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user