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

spring.captcha-config-sudoor.xml Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--
  #%L
  sudoor-server-lib
  %%
  Copyright (C) 2013 - 2014 Shark Xu
  %%
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as
  published by the Free Software Foundation, either version 2 of the
  License, or (at your option) any later version.
  
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public
  License along with this program.  If not, see
  <http://www.gnu.org/licenses/gpl-2.0.html>.
  #L%
  -->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:security="http://www.springframework.org/schema/security"
	xmlns:jee="http://www.springframework.org/schema/jee"
	xsi:schemaLocation="
	http://www.springframework.org/schema/beans 
	http://www.springframework.org/schema/beans/spring-beans-3.2.xsd 
	http://www.springframework.org/schema/security 
	http://www.springframework.org/schema/security/spring-security-3.2.xsd
	http://www.springframework.org/schema/jee
	http://www.springframework.org/schema/jee/spring-jee-3.2.xsd
	">

	<bean id="captchaProducer" class="com.google.code.kaptcha.impl.DefaultKaptcha">
		<property name="config">
			<bean class="com.google.code.kaptcha.util.Config">
				<constructor-arg type="java.util.Properties" value="null"></constructor-arg>
			</bean>
		</property>
	</bean>

	<!-- advanced config -->
	<!-- 
	<bean id="captchaProducer"
	        class="com.google.code.kaptcha.impl.DefaultKaptcha">
	        <property name="config">
	                <bean class="com.google.code.kaptcha.util.Config">
	                        <constructor-arg type="java.util.Properties">
	                                <props>
	                                        <prop key="kaptcha.image.width">300</prop> 
	                                        <prop key="kaptcha.image.height">25</prop>
	                                        <prop key="kaptcha.textproducer.char.string">0123456789</prop>
	                                        <prop key="kaptcha.textproducer.char.length">4</prop>
	                                </props>
	                        </constructor-arg>
	                </bean>
	        </property>
	</bean>
	 -->
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy