Search in sources :

Example 1 with SpnegoFilterConfig

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);
        }
    }
}
Also used : SpnegoFilterConfig(org.codelibs.spnego.SpnegoFilterConfig) FessSystemException(org.codelibs.fess.exception.FessSystemException) SsoLoginException(org.codelibs.fess.exception.SsoLoginException) FessSystemException(org.codelibs.fess.exception.FessSystemException) PostConstruct(javax.annotation.PostConstruct)

Aggregations

PostConstruct (javax.annotation.PostConstruct)1 FessSystemException (org.codelibs.fess.exception.FessSystemException)1 SsoLoginException (org.codelibs.fess.exception.SsoLoginException)1 SpnegoFilterConfig (org.codelibs.spnego.SpnegoFilterConfig)1