Example usage for org.apache.commons.codec.binary Hex Hex

List of usage examples for org.apache.commons.codec.binary Hex Hex

Introduction

In this page you can find the example usage for org.apache.commons.codec.binary Hex Hex.

Prototype

public Hex(String csName) 

Source Link

Document

Creates a new codec with the given charset name.

Usage

From source file:org.apache.metron.stellar.common.utils.hashing.DefaultHasher.java

/**
 * Builds a utility to hash values based on a given algorithm. Uses {@link StandardCharsets#UTF_8} for encoding.
 * @param algorithm The algorithm used when hashing a value.
 * @see java.security.Security/*from www.ja v a  2  s  .c om*/
 * @see java.security.MessageDigest
 */
public DefaultHasher(final String algorithm) {
    this(algorithm, new Hex(StandardCharsets.UTF_8));
}