| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <beans xmlns="http://www.springframework.org/schema/beans" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns:util="http://www.springframework.org/schema/util" |
| xsi:schemaLocation= |
| "http://www.springframework.org/schema/beans |
| http://www.springframework.org/schema/beans/spring-beans.xsd |
| http://www.springframework.org/schema/util |
| https://www.springframework.org/schema/util/spring-util.xsd"> |
| <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"> |
| <property name="localHost" value="127.0.0.1"/> |
| |
| <property name="discoverySpi"> |
| <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> |
| <property name="ipFinder"> |
| <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> |
| <property name="shared" value="false"/> |
| <property name="addresses"> |
| <list> |
| <value>127.0.0.1:47500</value> |
| </list> |
| </property> |
| </bean> |
| </property> |
| </bean> |
| </property> |
| |
| <property name="cacheConfiguration"> |
| <list> |
| <bean class="org.apache.ignite.configuration.CacheConfiguration"> |
| <property name="name" value="default"/> |
| </bean> |
| </list> |
| </property> |
| |
| <property name="pluginProviders"> |
| <list> |
| <bean class="org.apache.ignite.internal.processors.security.impl.TestSecurityPluginProvider"> |
| <constructor-arg name="login" value="login" /> |
| <constructor-arg name="pwd" value="pwd" /> |
| <constructor-arg name="perms"> |
| <bean class="org.apache.ignite.plugin.security.SecurityBasicPermissionSet"> |
| <property name="systemPermissions"> |
| <util:list value-type="org.apache.ignite.plugin.security.SecurityPermission"> |
| <value>JOIN_AS_SERVER</value> |
| <value>CACHE_CREATE</value> |
| </util:list> |
| </property> |
| <property name="taskPermissions"> |
| <util:map map-class="java.util.HashMap" key-type="java.lang.String" value-type="java.util.Collection"> |
| <entry key="AllowedCallable" value-ref="task-execute-permission"/> |
| <entry key="AllowedRunnable" value-ref="task-execute-permission"/> |
| </util:map> |
| </property> |
| </bean> |
| </constructor-arg> |
| <constructor-arg name="globalAuth" value="false" /> |
| <constructor-arg name="clientData"> |
| <list value-type="org.apache.ignite.internal.processors.security.impl.TestSecurityData"/> |
| </constructor-arg> |
| </bean> |
| </list> |
| </property> |
| </bean> |
| |
| <util:list id="task-execute-permission" value-type="org.apache.ignite.plugin.security.SecurityPermission"> |
| <value>TASK_EXECUTE</value> |
| </util:list> |
| </beans> |