// This will generate a PROTOCOL_ERROR
throw new DecoderException( I18n.err( I18n.ERR_744_NULL_PDU_LENGTH ) );
}
// Get the principalName
PrincipalName principalName = principalNameContainer.getPrincipalName();
Value value = tlv.getValue();
// The PrincipalName must be pure ASCII witout any control character
if ( KerberosUtils.isKerberosString( value.getData() ) )
{
String nameString = Strings.utf8ToString(value.getData());
principalName.addName( nameString );
principalNameContainer.setGrammarEndAllowed( true );
if ( IS_DEBUG )
{
LOG.debug( "PrincipalName String : {}", nameString );