private CiphertextHeaders createCiphertextHeaders(final ContentType contentType,final int frameSize){
  final byte[] headerNonce=new byte[nonceLen_];
  RND.nextBytes(headerNonce);
  final byte[] encryptionContextBytes=EncryptionContextSerializer.serialize(encryptionContext_);
  final CiphertextHeaders ciphertextHeaders=new CiphertextHeaders(version_,type_,cryptoAlgo_,encryptionContextBytes,keyBlobs_,contentType,frameSize);
  ciphertextHeaders.setHeaderNonce(headerNonce);
  return ciphertextHeaders;
}

private CiphertextHeaders createCiphertextHeaders ( final ContentType contentType , final int frameSize ) { final byte [ ] headerNonce = new byte [ nonceLen_ ] ; RND . nextBytes ( headerNonce ) ; final byte [ ] encryptionContextBytes = EncryptionContextSerializer . serialize ( encryptionContext_ ) ; final CiphertextHeaders ciphertextHeaders = new CiphertextHeaders ( version_ , type_ , cryptoAlgo_ , encryptionContextBytes , keyBlobs_ , contentType , frameSize ) ; ciphertextHeaders . setHeaderNonce ( headerNonce ) ; return ciphertextHeaders ; }
create ciphertext headers using the instance variables , and the provided content type and frame size .
