code: public HashAlgorithm getDecodedHashAlgorithm() throws TLVParserException {
          int algorithmId = getDecodedLong().intValue();
          if (HashAlgorithm.isHashAlgorithmId(algorithmId)) {
              return HashAlgorithm.getById(algorithmId);
          }
          throw new TLVParserException("Unknown hash algorithm with id " + algorithmId);
      }
docs: Gets HashAlgorithm form TLV element.
  
  @return Instance of {@link HashAlgorithm}.
  
  @throws TLVParserException