org.owasp.esapi.codecs
Class DB2Codec
java.lang.Object
org.owasp.esapi.codecs.Codec
org.owasp.esapi.codecs.DB2Codec
public class DB2Codec
- extends Codec
Implementation of the Codec interface for DB2 strings. This function will only protect you from SQLi in limited situations.
- Since:
- October 26, 2010
- Author:
- Sivasankar Tanakala ([email protected])
- See Also:
Encoder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DB2Codec
public DB2Codec()
encodeCharacter
public String encodeCharacter(char[] immune,
Character c)
- Description copied from class:
Codec
- Default implementation that should be overridden in specific codecs.
- Overrides:
encodeCharacter
in class Codec
c
- the Character to encode
- Returns:
- the encoded Character
decodeCharacter
public Character decodeCharacter(PushbackString input)
- Description copied from class:
Codec
- Returns the decoded version of the next character from the input string and advances the
current character in the PushbackString. If the current character is not encoded, this
method MUST reset the PushbackString.
- Overrides:
decodeCharacter
in class Codec
- Parameters:
input
- the Character to decode
- Returns:
- the decoded Character
Copyright © 2011 The Open Web Application Security Project (OWASP). All Rights Reserved.