Examples of JACCConfiguration


Examples of org.hibernate.secure.internal.JACCConfiguration

    setProperty( Environment.JACC_CONTEXTID, contextId );

    int roleStart = AvailableSettings.JACC_PREFIX.length() + 1;

    for ( String key : keys ) {
      JACCConfiguration jaccCfg = new JACCConfiguration( contextId );
      try {
        String role = key.substring( roleStart, key.indexOf( '.', roleStart ) );
        int classStart = roleStart + role.length() + 1;
        String clazz = key.substring( classStart, key.length() );
        String actions = (String) properties.get( key );
        jaccCfg.addPermission( role, clazz, actions );
      }
      catch (IndexOutOfBoundsException e) {
        throw new PersistenceException( getExceptionHeader() +
            "Illegal usage of " + AvailableSettings.JACC_PREFIX + ": " + key );
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.