All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wadpam.open.security.Permission Maven / Gradle / Ivy

The newest version!
package com.wadpam.open.security;

import org.springframework.security.core.Authentication;

/**
 * Interface implemented by various domain access permission evaluators.
 * @author mattiaslevin
 */
public interface Permission {

    /**
     * Check if the principle has permission to access the domain object.
     * @param authentication Spring authentication object
     * @param targetDomainObject domain object being accessed
     * @return true if the principle is allowed to access the domain object
     */
    boolean isAllowed(Authentication authentication, Object targetDomainObject);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy