
org.ligoj.bootstrap.http.security.ExtendedSecurityExpressionHandler Maven / Gradle / Ivy
/*
* Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)
*/
package org.ligoj.bootstrap.http.security;
import org.springframework.security.access.expression.SecurityExpressionOperations;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.FilterInvocation;
import org.springframework.stereotype.Component;
/**
* Custom expression handler using a different expression manager.
*/
@Component
public class ExtendedSecurityExpressionHandler extends AbstractCommonSecurityExpressionHandler {
@Override
protected SecurityExpressionOperations createSecurityExpressionRoot(final Authentication authentication, final FilterInvocation fi) {
return complete( new ExtendedWebSecurityExpressionRoot(authentication, fi));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy