Skip navigation links
A B C D F G I M N R S T V W 

A

AbstractBackground - Class in ml.miron.captcha.image.background
Abstract implementation of Background.
AbstractBackground() - Constructor for class ml.miron.captcha.image.background.AbstractBackground
 
addAnswer() - Method in class ml.miron.captcha.audio.AudioCaptcha.Builder
Add answer to the captcha using the NumbersAnswerProducer.
addAnswer(TextProducer) - Method in class ml.miron.captcha.audio.AudioCaptcha.Builder
Add answer to the captcha using the given TextProducer.
addBackground(BufferedImage) - Method in class ml.miron.captcha.image.background.AbstractBackground
 
addBackground(BufferedImage) - Method in interface ml.miron.captcha.image.background.Background
Add the background to the given image.
addBackground() - Method in class ml.miron.captcha.image.Captcha.Builder
Add a background using the default TransparentBackground.
addBackground(Background) - Method in class ml.miron.captcha.image.Captcha.Builder
Add a background using the given Background.
addBorder() - Method in class ml.miron.captcha.image.Captcha.Builder
Draw a single-pixel wide black border around the image.
addNoise() - Method in class ml.miron.captcha.audio.AudioCaptcha.Builder
Add noise using the default RandomNoiseProducer.
addNoise(NoiseProducer) - Method in class ml.miron.captcha.audio.AudioCaptcha.Builder
Add voice using the given NoiseProducer.
addNoise(List<Sample>) - Method in interface ml.miron.captcha.audio.producer.NoiseProducer
Append the given samples to each other, then add random noise to the result.
addNoise(List<Sample>) - Method in class ml.miron.captcha.audio.producer.RandomNoiseProducer
 
addNoise() - Method in class ml.miron.captcha.image.Captcha.Builder
Add noise using the default CurvedLineNoiseProducer.
addNoise(NoiseProducer) - Method in class ml.miron.captcha.image.Captcha.Builder
Add noise using the given NoiseProducer.
addText(WordRenderer) - Method in class ml.miron.captcha.image.Captcha.Builder
Add answer to the captcha with specified instance of WordRenderer.
addText() - Method in class ml.miron.captcha.image.Captcha.Builder
Add answer to the captcha using the DefaultTextProducer.
addText(TextProducer) - Method in class ml.miron.captcha.image.Captcha.Builder
ADd answer to the captcha using the given TextProducer.
addText(TextProducer, WordRenderer) - Method in class ml.miron.captcha.image.Captcha.Builder
ADd answer to the captcha using the given TextProducer, and render it to the image using the given WordRenderer.
addVoice() - Method in class ml.miron.captcha.audio.AudioCaptcha.Builder
Add voice using the default NumberVoiceProducer.
addVoice(VoiceProducer) - Method in class ml.miron.captcha.audio.AudioCaptcha.Builder
Add voice using the given VoiceProducer.
append(List<Sample>) - Static method in class ml.miron.captcha.util.MixerUtil
Glues samples together.
asByteArray() - Method in class ml.miron.captcha.audio.Sample
Return the interleaved samples as a byte[].
asByteArray(long, double[]) - Static method in class ml.miron.captcha.audio.Sample
Helper method to convert a double[] to a byte[] in a format that can be used by AudioInputStream.
AudioCaptcha - Class in ml.miron.captcha.audio
A builder for generating a CAPTCHA audio/answer pair.
AudioCaptcha.Builder - Class in ml.miron.captcha.audio
Captcha class builder.
AudioCaptchaServlet - Class in ml.miron.captcha.servlet
Generates a new AudioCaptcha and writes the audio to the response.
AudioCaptchaServlet() - Constructor for class ml.miron.captcha.servlet.AudioCaptchaServlet
 

B

Background - Interface in ml.miron.captcha.image.background
Base interface for background.
build() - Method in class ml.miron.captcha.audio.AudioCaptcha.Builder
Builds the captcha.
build() - Method in class ml.miron.captcha.image.Captcha.Builder
Builds the captcha.
Builder() - Constructor for class ml.miron.captcha.audio.AudioCaptcha.Builder
Creates a AudioCaptcha.Builder with empty voice and noise lists.
Builder(int, int) - Constructor for class ml.miron.captcha.image.Captcha.Builder
Creates a Captcha.Builder with specified width and height.

C

Captcha - Class in ml.miron.captcha.image
A builder for generating a captcha image/answer pair.
Captcha.Builder - Class in ml.miron.captcha.image
Captcha class builder.
CAPTCHA_ATTRIBUTE - Static variable in class ml.miron.captcha.util.CaptchaServletUtil
 
CaptchaServlet - Class in ml.miron.captcha.servlet
Generates a new Captcha and writes the image to the response.
CaptchaServlet() - Constructor for class ml.miron.captcha.servlet.CaptchaServlet
 
CaptchaServletUtil - Class in ml.miron.captcha.util
Helper class for operating with HttpServletResponse and image/audio resources.
ColoredEdgesWordRenderer - Class in ml.miron.captcha.image.renderer
Implementation of WordRenderer.
ColoredEdgesWordRenderer() - Constructor for class ml.miron.captcha.image.renderer.ColoredEdgesWordRenderer
Creates a ColoredEdgesWordRenderer with default color (black), font (Arial) and stroke width (1).
ColoredEdgesWordRenderer(List<Color>, List<Font>) - Constructor for class ml.miron.captcha.image.renderer.ColoredEdgesWordRenderer
Creates a ColoredEdgesWordRenderer with specified colors and fonts, and default stroke width (1).
ColoredEdgesWordRenderer(List<Color>, List<Font>, float) - Constructor for class ml.miron.captcha.image.renderer.ColoredEdgesWordRenderer
Creates a ColoredEdgesWordRenderer with specified colors, fonts and stroke width.
CurvedLineNoiseProducer - Class in ml.miron.captcha.image.producer
Adds a randomly curved line to the image.
CurvedLineNoiseProducer() - Constructor for class ml.miron.captcha.image.producer.CurvedLineNoiseProducer
Creates a CurvedLineNoiseProducer with default color and width.
CurvedLineNoiseProducer(Color, float) - Constructor for class ml.miron.captcha.image.producer.CurvedLineNoiseProducer
Creates a CurvedLineNoiseProducer with specified color and width.

D

decodeBytes(byte[], double[]) - Method in class ml.miron.captcha.audio.Sample
Decodes bytes of audioBytes into audioSamples.
DefaultTextProducer - Class in ml.miron.captcha.image.producer
Produces text of a given length from a given array of characters.
DefaultTextProducer() - Constructor for class ml.miron.captcha.image.producer.DefaultTextProducer
Creates a DefaultTextProducer with default length and random characters.
DefaultTextProducer(int) - Constructor for class ml.miron.captcha.image.producer.DefaultTextProducer
Creates a DefaultTextProducer with random characters and specified length.
DefaultTextProducer(int, char[]) - Constructor for class ml.miron.captcha.image.producer.DefaultTextProducer
Creates a DefaultTextProducer with specified length and characters.
DefaultTextProducer(String) - Constructor for class ml.miron.captcha.image.producer.DefaultTextProducer
Creates a DefaultTextProducer with specified text.
DefaultWordRenderer - Class in ml.miron.captcha.image.renderer
Default implementation of WordRenderer.
DefaultWordRenderer() - Constructor for class ml.miron.captcha.image.renderer.DefaultWordRenderer
Creates a DefaultWordRenderer with default color (black) and fonts (Arial and Courier).
DefaultWordRenderer(List<Color>, List<Font>) - Constructor for class ml.miron.captcha.image.renderer.DefaultWordRenderer
Creates a DefaultWordRenderer with specified colors and fonts.
destroy() - Method in class ml.miron.captcha.servlet.RefreshCaptchaFilter
 
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class ml.miron.captcha.servlet.RefreshCaptchaFilter
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class ml.miron.captcha.servlet.AudioCaptchaServlet
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class ml.miron.captcha.servlet.CaptchaServlet
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class ml.miron.captcha.servlet.AudioCaptchaServlet
 

F

FileUtil - Class in ml.miron.captcha.util
Utility class for operating with files.
FishEyeRenderer - Class in ml.miron.captcha.image.renderer
Overlays a warped grid to the image.
FishEyeRenderer() - Constructor for class ml.miron.captcha.image.renderer.FishEyeRenderer
Creates a warped grid with default black colors.
FishEyeRenderer(Color, Color) - Constructor for class ml.miron.captcha.image.renderer.FishEyeRenderer
Creates a warped grid with specified colors.

G

getAnswer() - Method in class ml.miron.captcha.audio.AudioCaptcha
Returns the answer for captcha.
getAnswer() - Method in class ml.miron.captcha.image.Captcha
Returns the answer for captcha.
getAudioInputStream() - Method in class ml.miron.captcha.audio.Sample
Returns audio stream.
getBackground(int, int) - Method in interface ml.miron.captcha.image.background.Background
Returns the background by the given width and height.
getBackground(int, int) - Method in class ml.miron.captcha.image.background.GradiatedBackground
 
getBackground(int, int) - Method in class ml.miron.captcha.image.background.TransparentBackground
 
getChallenge() - Method in class ml.miron.captcha.audio.AudioCaptcha
Returns the audio sample of captcha.
getChannelSamples(int, double[], double[]) - Method in class ml.miron.captcha.audio.Sample
Extract samples of a particular channel from interleavedSamples and copy them into channelSamples.
getFormat() - Method in class ml.miron.captcha.audio.Sample
Returns the current format audio.
getImage() - Method in class ml.miron.captcha.image.Captcha
Get the PNG captcha image.
getInterleavedSamples() - Method in class ml.miron.captcha.audio.Sample
Returns the array of interleaved samples.
getInterleavedSamples(long, long, double[]) - Method in class ml.miron.captcha.audio.Sample
Get the interleaved decoded samples for all channels, from sample index begin (included) to sample index end (excluded) and copy them into samples.
getSampleCount() - Method in class ml.miron.captcha.audio.Sample
Return the number of samples of all channels.
getStereoSamples(double[], double[]) - Method in class ml.miron.captcha.audio.Sample
Convenience method.
getText() - Method in class ml.miron.captcha.image.producer.DefaultTextProducer
 
getText() - Method in class ml.miron.captcha.image.producer.NumbersAnswerProducer
 
getText() - Method in interface ml.miron.captcha.image.producer.TextProducer
Generate a series of characters to be used as the answer for the CAPTCHA.
getVocalization(char) - Method in class ml.miron.captcha.audio.producer.NumberVoiceProducer
 
getVocalization(char) - Method in interface ml.miron.captcha.audio.producer.VoiceProducer
Returns the audio sample for the given single character.
gimp() - Method in class ml.miron.captcha.image.Captcha.Builder
Gimp the image using the default FishEyeRenderer.
gimp(Renderer) - Method in class ml.miron.captcha.image.Captcha.Builder
Gimp the image using the given Renderer.
gimp(BufferedImage) - Method in class ml.miron.captcha.image.renderer.FishEyeRenderer
 
gimp(BufferedImage) - Method in interface ml.miron.captcha.image.renderer.Renderer
Draws the graphic image based on the defined BufferedImage.
GradiatedBackground - Class in ml.miron.captcha.image.background
Creates a gradiated background with the given from and to Color values.
GradiatedBackground() - Constructor for class ml.miron.captcha.image.background.GradiatedBackground
Creates a gradiated background with defaults colors: from dark gray to white.
GradiatedBackground(Color, Color) - Constructor for class ml.miron.captcha.image.background.GradiatedBackground
Creates a gradiated background with specified from and to colors.

I

init() - Method in class ml.miron.captcha.servlet.CaptchaServlet
 
init(FilterConfig) - Method in class ml.miron.captcha.servlet.RefreshCaptchaFilter
 
isCorrect(String) - Method in class ml.miron.captcha.audio.AudioCaptcha
Returns true if specified answer if correct, otherwise false.
isCorrect(String) - Method in class ml.miron.captcha.image.Captcha
Returns true if specified answer if correct, otherwise false.

M

makeNoise(BufferedImage) - Method in class ml.miron.captcha.image.producer.CurvedLineNoiseProducer
 
makeNoise(BufferedImage) - Method in interface ml.miron.captcha.image.producer.NoiseProducer
Adds noise to the specified image.
mix(Sample, double, Sample, double) - Static method in class ml.miron.captcha.util.MixerUtil
Mixes two specified samples.
MixerUtil - Class in ml.miron.captcha.util
Helper class for operating with Sample.
ml.miron.captcha.audio - package ml.miron.captcha.audio
 
ml.miron.captcha.audio.producer - package ml.miron.captcha.audio.producer
 
ml.miron.captcha.image - package ml.miron.captcha.image
 
ml.miron.captcha.image.background - package ml.miron.captcha.image.background
 
ml.miron.captcha.image.producer - package ml.miron.captcha.image.producer
 
ml.miron.captcha.image.renderer - package ml.miron.captcha.image.renderer
 
ml.miron.captcha.servlet - package ml.miron.captcha.servlet
 
ml.miron.captcha.util - package ml.miron.captcha.util
 

N

NoiseProducer - Interface in ml.miron.captcha.audio.producer
Base interface for the audio noise producer.
NoiseProducer - Interface in ml.miron.captcha.image.producer
Base interface for the image noise producer.
NumbersAnswerProducer - Class in ml.miron.captcha.image.producer
TextProducer implementation that will return a series of numbers.
NumbersAnswerProducer() - Constructor for class ml.miron.captcha.image.producer.NumbersAnswerProducer
Creates a NumbersAnswerProducer with default length.
NumbersAnswerProducer(int) - Constructor for class ml.miron.captcha.image.producer.NumbersAnswerProducer
Creates a NumbersAnswerProducer with specified length.
NumbersAnswerProducer(String) - Constructor for class ml.miron.captcha.image.producer.NumbersAnswerProducer
Creates a NumbersAnswerProducer with specified text.
NumberVoiceProducer - Class in ml.miron.captcha.audio.producer
Generates a vocalization for a given number, randomly selecting from a list of voices.
NumberVoiceProducer() - Constructor for class ml.miron.captcha.audio.producer.NumberVoiceProducer
Creates a NumberVoiceProducer for the default set of voices.
NumberVoiceProducer(Map<Integer, String[]>) - Constructor for class ml.miron.captcha.audio.producer.NumberVoiceProducer
Creates a NumberVoiceProducer for the given voices.

R

RandomNoiseProducer - Class in ml.miron.captcha.audio.producer
Adds noise to a Sample from one of the given noiseFiles.
RandomNoiseProducer() - Constructor for class ml.miron.captcha.audio.producer.RandomNoiseProducer
Creates a RandomNoiseProducer from default set of noises.
RandomNoiseProducer(String[]) - Constructor for class ml.miron.captcha.audio.producer.RandomNoiseProducer
Creates a RandomNoiseProducer from one of the given noiseFiles.
readResource(String) - Static method in class ml.miron.captcha.util.FileUtil
Gets a file resource and returns it as an InputStream.
readSample(String) - Static method in class ml.miron.captcha.util.FileUtil
Returns a audio sample by specified filename.
RefreshCaptchaFilter - Class in ml.miron.captcha.servlet
Removes the captcha attribute from session, thereby resets captcha.
RefreshCaptchaFilter() - Constructor for class ml.miron.captcha.servlet.RefreshCaptchaFilter
 
render(String, BufferedImage) - Method in class ml.miron.captcha.image.renderer.ColoredEdgesWordRenderer
 
render(String, BufferedImage) - Method in class ml.miron.captcha.image.renderer.DefaultWordRenderer
 
render(String, BufferedImage) - Method in interface ml.miron.captcha.image.renderer.WordRenderer
Render a word into a BufferedImage.
Renderer - Interface in ml.miron.captcha.image.renderer
Base interface for the graphic image renderer.

S

Sample - Class in ml.miron.captcha.audio
Class representing a sound sample, typically read in from a file.
Sample(InputStream) - Constructor for class ml.miron.captcha.audio.Sample
Creates a Sample with defined input stream.
SC_AUDIO_FORMAT - Static variable in class ml.miron.captcha.audio.Sample
 

T

TextProducer - Interface in ml.miron.captcha.image.producer
Generate an answer for the CAPTCHA.
toString() - Method in class ml.miron.captcha.audio.Sample
 
TransparentBackground - Class in ml.miron.captcha.image.background
Generates a transparent background.
TransparentBackground() - Constructor for class ml.miron.captcha.image.background.TransparentBackground
 

V

VoiceProducer - Interface in ml.miron.captcha.audio.producer
Generates a vocalization for a single character.

W

WordRenderer - Interface in ml.miron.captcha.image.renderer
Render the answer for the CAPTCHA into the image.
writeAudio(HttpServletResponse, Sample) - Static method in class ml.miron.captcha.util.CaptchaServletUtil
Writes audio to the response.
writeImage(HttpServletResponse, BufferedImage) - Static method in class ml.miron.captcha.util.CaptchaServletUtil
Writes image to the response.
A B C D F G I M N R S T V W 
Skip navigation links

Copyright © 2015. All rights reserved.