public String decodeKey(final String hexEncodedKey){
  if (StringUtils.isEmpty(hexEncodedKey)) {
    throw new IllegalArgumentException("hexEncodedKey cannot be empty");
  }
  try {
    return new String(Hex.decodeHex(hexEncodedKey.toCharArray()));
  }
 catch (  DecoderException de) {
    throw new IllegalStateException(de);
  }
}

public String decodeKey ( final String hexEncodedKey ) { if ( StringUtils . isEmpty ( hexEncodedKey ) ) { throw new IllegalArgumentException ( "hexEncodedKey cannot be empty" ) ; } try { return new String ( Hex . decodeHex ( hexEncodedKey . toCharArray ( ) ) ) ; } catch ( DecoderException de ) { throw new IllegalStateException ( de ) ; } }
decode the given hexadecimal key .
