org.hibernate.validator.HibernateValidatorPermission Maven / Gradle / Ivy
/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or .
*/
package org.hibernate.validator;
import java.security.BasicPermission;
/**
* Our specific implementation of {@link BasicPermission} as we cannot define additional {@link RuntimePermission}.
*
* {@code HibernateValidatorPermission} is thread-safe and immutable.
*
* @author Guillaume Smet
*/
public class HibernateValidatorPermission extends BasicPermission {
public static final HibernateValidatorPermission ACCESS_PRIVATE_MEMBERS = new HibernateValidatorPermission( "accessPrivateMembers" );
public HibernateValidatorPermission(String name) {
super( name );
}
public HibernateValidatorPermission(String name, String actions) {
super( name, actions );
}
}