METHOD-DATA : 0x30 L1 METHOD-DATA sequence of PA-DATA | +--> 0x30 L2[1] PA-DATA[1] | +--> 0x30 L2[2] PA-DATA[2] | ... | +--> 0x30 L2[n] PA-DATA[n] where L1 = sum( L2[1], l2[2], ..., L2[n] )
899900901902903904905906907908909
methodData.addPaData( new PaData( PaDataType.PA_ENCTYPE_INFO2, encTypeInfo2 ) ); try { ByteBuffer buffer = ByteBuffer.allocate( methodData.computeLength() ); return methodData.encode( buffer ).array(); } catch ( EncoderException ee ) { LOG_KRB.warn( "Failed to encode the etype information", ee );
131132133134135136137138139140141
assertTrue( Arrays.equals( Strings.getBytesUtf8( expected[i] ), paData.getPaDataValue() ) ); i++; } // Check the encoding ByteBuffer bb = ByteBuffer.allocate( methodData.computeLength() ); try { bb = methodData.encode( bb );
912913914915916917918919920921922
methodData.addPaData( new PaData( PaDataType.PA_ENCTYPE_INFO2, encTypeInfo2 ) ); try { ByteBuffer buffer = ByteBuffer.allocate( methodData.computeLength() ); return methodData.encode( buffer ).array(); } catch ( EncoderException ee ) { LOG.warn( "Failed to encode the etype information", ee );
130131132133134135136137138139140
830831832833834835836837838839840
MethodData methodData = new MethodData(); methodData.addPaData( responsePaData ); try { ByteBuffer buffer = ByteBuffer.allocate( methodData.computeLength() ); return methodData.encode( buffer ).array(); } catch ( EncoderException ee ) { return null;
107108109110111112113114115116117
assertTrue( Arrays.equals( Strings.getBytesUtf8(expected[i]), paData.getPaDataValue() ) ); i++; } // Check the encoding ByteBuffer bb = ByteBuffer.allocate( methodData.computeLength() ); try { bb = methodData.encode( bb );
808809810811812813814815816817818
898899900901902903904905906907908