* {@inheritDoc}
*/
public void action( ETypeInfo2EntryContainer eTypeInfo2EntryContainer ) throws DecoderException
{
TLV tlv = eTypeInfo2EntryContainer.getCurrentTLV();
ETypeInfo2Entry etypeInfo2Entry = eTypeInfo2EntryContainer.getETypeInfo2Entry();
// The Length may be null
if ( tlv.getLength() != 0 )
{
BerValue value = tlv.getValue();
// The encrypted data may be null
if ( value.getData() != null )
{
String salt = Strings.utf8ToString( value.getData() );
etypeInfo2Entry.setSalt( salt );
}
}
if ( IS_DEBUG )
{
LOG.debug( "salt : {}", etypeInfo2Entry.getSalt() );
}
// We can end here
eTypeInfo2EntryContainer.setGrammarEndAllowed( true );
}