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

org.seedstack.seed.security.spi.data.DataSecurityHandler Maven / Gradle / Ivy

/**
 * Copyright (c) 2013-2016, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.seed.security.spi.data;

/**
 * Interface to implement in order to add behaviour around data security.
 * 

* We use it to secure Fields, Methods or Contructors. * * @param the type of the candidate. * @author [email protected] * @author [email protected] * Date: 09/07/2014 * */ public interface DataSecurityHandler { /** * This methods helps to determine the security object out of the candidate. *

* most of the time it will be a string representing an expression language, * but it can be anything. *

* @param candidate the candidate object that will be provided. * @return the security expression */ Object securityExpression(A candidate); /** * This methods helps to determine the {@link DataObfuscationHandler} out of the candidate. *

* * @param candidate the candidate object that will be provided. * * @return the data obfuscation handler. the return can ben null. */ Class> securityObfuscationHandler(A candidate); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy