# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

- Deprecated Classes
  Class and Description
  org.apache.commons.codec.language.Caverphone 1.5 Replaced by `Caverphone2`, will be removed in 2.0.

- Deprecated Fields
  Field and Description
  org.apache.commons.codec.net.URLCodec.charset TODO: This field will be changed to a private final Charset in 2.0. (CODEC-126)
  org.apache.commons.codec.binary.BaseNCodec.PAD Use `BaseNCodec.pad`. Will be removed in 2.0.
  org.apache.commons.codec.net.URLCodec.WWW_FORM_URL 1.11 Will be removed in 2.0 (CODEC-230)

- Deprecated Methods
  Method and Description
  org.apache.commons.codec.net.URLCodec.getEncoding() Use `URLCodec.getDefaultCharset()`, will be removed in 2.0.
  org.apache.commons.codec.digest.HmacUtils.getHmacMd5(byte[]) (1.11) Use `getInitializedMac(HmacAlgorithms.HMAC_MD5, byte[])`
  org.apache.commons.codec.digest.HmacUtils.getHmacSha1(byte[]) (1.11) Use `getInitializedMac(HmacAlgorithms.HMAC_SHA_1, byte[])`
  org.apache.commons.codec.digest.HmacUtils.getHmacSha256(byte[]) (1.11) Use `getInitializedMac(HmacAlgorithms.HMAC_SHA_256, byte[])`
  org.apache.commons.codec.digest.HmacUtils.getHmacSha384(byte[]) (1.11) Use `getInitializedMac(HmacAlgorithms.HMAC_SHA_384, byte[])`
  org.apache.commons.codec.digest.HmacUtils.getHmacSha512(byte[]) (1.11) Use `getInitializedMac(HmacAlgorithms.HMAC_SHA_512, byte[])`
  org.apache.commons.codec.language.Soundex.getMaxLength() This feature is not needed since the encoding size must be constant. Will be removed in 2.0.
  org.apache.commons.codec.digest.DigestUtils.getShaDigest() (1.11) Use `DigestUtils.getSha1Digest()`
  org.apache.commons.codec.digest.HmacUtils.hmacMd5(byte[], byte[]) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, byte[]).hmac(byte[])`
  org.apache.commons.codec.digest.HmacUtils.hmacMd5(byte[], InputStream) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, byte[]).hmac(InputStream)`
  org.apache.commons.codec.digest.HmacUtils.hmacMd5(String, String) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, String).hmac(String)`
  org.apache.commons.codec.digest.HmacUtils.hmacMd5Hex(byte[], byte[]) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, byte[]).hmacHex(byte[])`
  org.apache.commons.codec.digest.HmacUtils.hmacMd5Hex(byte[], InputStream) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, byte[]).hmacHex(InputStream)`
  org.apache.commons.codec.digest.HmacUtils.hmacMd5Hex(String, String) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, String).hmacHex(String)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha1(byte[], byte[]) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, byte[]).hmac(byte[])`
  org.apache.commons.codec.digest.HmacUtils.hmacSha1(byte[], InputStream) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, byte[]).hmac(InputStream)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha1(String, String) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, String).hmac(String)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha1Hex(byte[], byte[]) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, byte[]).hmacHex(byte[])`
  org.apache.commons.codec.digest.HmacUtils.hmacSha1Hex(byte[], InputStream) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, byte[]).hmacHex(InputStream)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha1Hex(String, String) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, String).hmacHex(String)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha256(byte[], byte[]) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, byte[]).hmac(byte[])`
  org.apache.commons.codec.digest.HmacUtils.hmacSha256(byte[], InputStream) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, byte[]).hmac(InputStream)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha256(String, String) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, String).hmac(String)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha256Hex(byte[], byte[]) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, byte[]).hmacHex(byte[])`
  org.apache.commons.codec.digest.HmacUtils.hmacSha256Hex(byte[], InputStream) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, byte[]).hmacHex(InputStream)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha256Hex(String, String) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, String).hmacHex(String)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha384(byte[], byte[]) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, byte[]).hmac(byte[])`
  org.apache.commons.codec.digest.HmacUtils.hmacSha384(byte[], InputStream) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, byte[]).hmac(InputStream)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha384(String, String) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, String).hmac(String)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha384Hex(byte[], byte[]) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, byte[]).hmacHex(byte[])`
  org.apache.commons.codec.digest.HmacUtils.hmacSha384Hex(byte[], InputStream) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, byte[]).hmacHex(InputStream)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha384Hex(String, String) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, String).hmacHex(String)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha512(byte[], byte[]) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, byte[]).hmac(byte[])`
  org.apache.commons.codec.digest.HmacUtils.hmacSha512(byte[], InputStream) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, byte[]).hmac(InputStream)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha512(String, String) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, String).hmac(String)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha512Hex(byte[], byte[]) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, byte[]).hmacHex(byte[])`
  org.apache.commons.codec.digest.HmacUtils.hmacSha512Hex(byte[], InputStream) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, byte[]).hmacHex(InputStream)`
  org.apache.commons.codec.digest.HmacUtils.hmacSha512Hex(String, String) (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, String).hmacHex(String)`
  org.apache.commons.codec.binary.Base64.isArrayByteBase64(byte[]) 1.5 Use `Base64.isBase64(byte[])`, will be removed in 2.0.
  org.apache.commons.codec.language.bm.Rule.Phoneme.join(Rule.Phoneme) since 1.9
  org.apache.commons.codec.language.Soundex.setMaxLength(int) This feature is not needed since the encoding size must be constant. Will be removed in 2.0.
  org.apache.commons.codec.digest.DigestUtils.sha(byte[]) (1.11) Use `DigestUtils.sha1(byte[])`
  org.apache.commons.codec.digest.DigestUtils.sha(InputStream) (1.11) Use `DigestUtils.sha1(InputStream)`
  org.apache.commons.codec.digest.DigestUtils.sha(String) (1.11) Use `DigestUtils.sha1(String)`
  org.apache.commons.codec.digest.DigestUtils.shaHex(byte[]) (1.11) Use `DigestUtils.sha1Hex(byte[])`
  org.apache.commons.codec.digest.DigestUtils.shaHex(InputStream) (1.11) Use `DigestUtils.sha1Hex(InputStream)`
  org.apache.commons.codec.digest.DigestUtils.shaHex(String) (1.11) Use `DigestUtils.sha1Hex(String)`

- Deprecated Constructors
  Constructor and Description
  org.apache.commons.codec.digest.DigestUtils() since 1.11; only useful to preserve binary compatibility
  org.apache.commons.codec.digest.HmacUtils() since 1.11; only useful to preserve binary compatibility
  org.apache.commons.codec.StringEncoderComparator() Creating an instance without a `StringEncoder` leads to a `NullPointerException`. Will be removed in 2.0.

Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.