Example usage for org.springframework.security.access.intercept AbstractSecurityInterceptor getSecureObjectClass

List of usage examples for org.springframework.security.access.intercept AbstractSecurityInterceptor getSecureObjectClass

Introduction

In this page you can find the example usage for org.springframework.security.access.intercept AbstractSecurityInterceptor getSecureObjectClass.

Prototype

public abstract Class<?> getSecureObjectClass();

Source Link

Document

Indicates the type of secure objects the subclass will be presenting to the abstract parent for processing.

Usage

From source file:org.springframework.security.access.intercept.MethodInvocationPrivilegeEvaluator.java

public void setSecurityInterceptor(AbstractSecurityInterceptor securityInterceptor) {
    Assert.notNull(securityInterceptor, "AbstractSecurityInterceptor cannot be null");
    Assert.isTrue(MethodInvocation.class.equals(securityInterceptor.getSecureObjectClass()),
            "AbstractSecurityInterceptor does not support MethodInvocations");
    Assert.notNull(securityInterceptor.getAccessDecisionManager(),
            "AbstractSecurityInterceptor must provide a non-null AccessDecisionManager");
    this.securityInterceptor = securityInterceptor;
}

From source file:org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator.java

public DefaultWebInvocationPrivilegeEvaluator(AbstractSecurityInterceptor securityInterceptor) {
    Assert.notNull(securityInterceptor, "SecurityInterceptor cannot be null");
    Assert.isTrue(FilterInvocation.class.equals(securityInterceptor.getSecureObjectClass()),
            "AbstractSecurityInterceptor does not support FilterInvocations");
    Assert.notNull(securityInterceptor.getAccessDecisionManager(),
            "AbstractSecurityInterceptor must provide a non-null AccessDecisionManager");

    this.securityInterceptor = securityInterceptor;
}