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

com.feilong.lib.xstream.security.TypePermission Maven / Gradle / Ivy

Go to download

feilong is a suite of core and expanded libraries that include utility classes, http, excel,cvs, io classes, and much much more.

There is a newer version: 4.0.8
Show newest version
/*
 * Copyright (C) 2014 XStream Committers.
 * All rights reserved.
 *
 * Created on 08. January 2014 by Joerg Schaible
 */
package com.feilong.lib.xstream.security;

/**
 * Definition of a type permission.
 * 
 * @author Jörg Schaible
 * @since 1.4.7
 */
public interface TypePermission{

    /**
     * Check permission for a provided type.
     * 
     * @param type
     *            the type to check
     * @return true if provided type is allowed, false if permission does not handle the type
     * @throws ForbiddenClassException
     *             if provided type is explicitly forbidden
     * @since 1.4.7
     */
    boolean allows(Class type);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy