use of org.codelibs.spnego.SpnegoFilterConfig in project fess by codelibs.
the class SpnegoAuthenticator method init.
@PostConstruct
public void init() {
if ("spnego".equals(ComponentUtil.getFessConfig().getSsoType())) {
try {
// set some System properties
final SpnegoFilterConfig config = SpnegoFilterConfig.getInstance(new SpengoConfig());
// pre-authenticate
authenticator = new org.codelibs.spnego.SpnegoAuthenticator(config);
} catch (final Exception e) {
throw new FessSystemException("Failed to initialize SPNEGO.", e);
}
}
}
Aggregations