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 ) ; }
Gets HashAlgorithm form TLV element .